Top Description Fields Constructors Methods
org.bouncycastle.asn1.x509

public Class AltSignatureAlgorithm

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1Object, .ASN1ObjectIdentifier, .ASN1Primitive, .ASN1TaggedObject

X.509 Section 9.8.3.
This extension may be used as a public-key certificate extension, a CRL extension or an AVL extension. It shall contain the algorithm identifier for the alternative digital signature algorithm used by the signer when creating an alternative digital signature and by the relying party when validating the alternative digital signature.
altSignatureAlgorithm EXTENSION ::= {
    SYNTAX AltSignatureAlgorithm
    IDENTIFIED BY id-ce-altSignatureAlgorithm }

AltSignatureAlgorithm ::= AlgorithmIdentifier{{SupportedAlgorithms}}
When the altSignatureAlgorithm extension is included in a particular value that is an instance of a data type that supports extensions, the altSignatureValue extension shall also be included.
NOTE 1 – By having a separate altSignatureAlgorithm extension, instead of having it combined with the altSignatureValue extension, the alternative digital signature algorithm is protected by the alternative signature. This extension may be flagged either as critical or as non-critical.
NOTE 2 – It is recommended that it be flagged as non-critical. Flagging it as critical would require all relying parties to understand the extension and the alternative public-key algorithms

Field Summary

Modifier and TypeField and Description
private final AlgorithmIdentifier

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public static AltSignatureAlgorithm
public AlgorithmIdentifier

Returns:

alternate signature algorithm identifier.
getAlgorithm
()

Return the algorithm identifier representing the alternate signature algorithm used to generate the alternate signature algorithm value extension.

public static AltSignatureAlgorithm
getInstance(ASN1TaggedObject obj, boolean explicit)

public static AltSignatureAlgorithm
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

algorithmback to summary
private final AlgorithmIdentifier algorithm

Constructor Detail

AltSignatureAlgorithmback to summary
public AltSignatureAlgorithm(AlgorithmIdentifier algorithm)
AltSignatureAlgorithmback to summary
public AltSignatureAlgorithm(ASN1ObjectIdentifier algorithm)
AltSignatureAlgorithmback to summary
public AltSignatureAlgorithm(ASN1ObjectIdentifier algorithm, ASN1Encodable parameters)

Method Detail

fromExtensionsback to summary
public static AltSignatureAlgorithm fromExtensions(Extensions extensions)
getAlgorithmback to summary
public AlgorithmIdentifier getAlgorithm()

Return the algorithm identifier representing the alternate signature algorithm used to generate the alternate signature algorithm value extension.

Returns:AlgorithmIdentifier

alternate signature algorithm identifier.

getInstanceback to summary
public static AltSignatureAlgorithm getInstance(ASN1TaggedObject obj, boolean explicit)
getInstanceback to summary
public static AltSignatureAlgorithm getInstance(Object obj)
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.