Package org.bouncycastle.cert
Class AltSignatureValue
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.cert.AltSignatureValue
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable,org.bouncycastle.util.Encodable
public class AltSignatureValue
extends org.bouncycastle.asn1.ASN1Object
X.509 Section 9.8.4.
This extension may be used as a public-key certificate extension, a CRL extension or an AVL extension. This alternative signature shall be created by the issuer using its alternative private key, and it shall be verified using the alternative public key of the issuer.
The procedures for creating and validating alternative digital signatures are specified in:
This extension may be used as a public-key certificate extension, a CRL extension or an AVL extension. This alternative signature shall be created by the issuer using its alternative private key, and it shall be verified using the alternative public key of the issuer.
altSignatureValue EXTENSION ::= {
SYNTAX AltSignatureValue
IDENTIFIED BY id-ce-altSignatureValue }
AltSignatureValue ::= BIT STRING
This extension can only be created by a signer holding a multiple cryptographic algorithms public-key certificate. When
creating the alternative digital signature on an issued public-key certificate or CRL, the signer shall use its alternative
private key.
The procedures for creating and validating alternative digital signatures are specified in:
- clause 7.2.2 for public-key certificates;
- clause 7.10.3 for CRLs: and
- clause 11.4 for AVLs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AltSignatureValuefromExtensions(org.bouncycastle.asn1.x509.Extensions extensions) static AltSignatureValuegetInstance(Object obj) static AltSignatureValuegetInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) org.bouncycastle.asn1.ASN1BitStringReturn the alternate signature to verify the certificate.org.bouncycastle.asn1.ASN1PrimitiveMethods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
AltSignatureValue
public AltSignatureValue(byte[] signature) Base constructor.- Parameters:
signature- a signature value, based on the enclosing certificate.
-
-
Method Details
-
getInstance
public static AltSignatureValue getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) -
getInstance
-
fromExtensions
-
getSignature
public org.bouncycastle.asn1.ASN1BitString getSignature()Return the alternate signature to verify the certificate.- Returns:
- certificate's alternate signature.
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()- Specified by:
toASN1Primitivein interfaceorg.bouncycastle.asn1.ASN1Encodable- Specified by:
toASN1Primitivein classorg.bouncycastle.asn1.ASN1Object
-