Package org.bouncycastle.asn1.x509
Class SubjectAltPublicKeyInfo
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.x509.SubjectAltPublicKeyInfo
-
- All Implemented Interfaces:
ASN1Encodable,Encodable
public class SubjectAltPublicKeyInfo extends ASN1Object
X.509 Section 9.8.2.
This public-key certificate extension, when present, shall contain the subject’s alternative public key informationsubjectAltPublicKeyInfo EXTENSION ::= { SYNTAX SubjectAltPublicKeyInfo IDENTIFIED BY id-ce-subjectAltPublicKeyInfo } SubjectAltPublicKeyInfo ::= SEQUENCE { algorithm AlgorithmIdentifier{{SupportedAlgorithms}}, subjectAltPublicKey BIT STRING }The SubjectAltPublicKeyInfo data type has the following components:- the algorithm subcomponent, which shall hold the algorithm that this public key is an instance of
- the subjectAltPublicKey subcomponent, which shall hold the alternative public key
NOTE – It is recommended that it be flagged as non-critical. Flagging it as critical would require relying parties to understand this extension and the alternative public-key algorithm.
-
-
Constructor Summary
Constructors Constructor Description SubjectAltPublicKeyInfo(AlgorithmIdentifier algorithm, ASN1BitString subjectAltPublicKey)SubjectAltPublicKeyInfo(SubjectPublicKeyInfo subjectPublicKeyInfo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubjectAltPublicKeyInfofromExtensions(Extensions extensions)AlgorithmIdentifiergetAlgorithm()static SubjectAltPublicKeyInfogetInstance(java.lang.Object obj)static SubjectAltPublicKeyInfogetInstance(ASN1TaggedObject obj, boolean explicit)ASN1BitStringgetSubjectAltPublicKey()ASN1PrimitivetoASN1Primitive()Method providing a primitive representation of this object suitable for encoding.-
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
-
-
-
Constructor Detail
-
SubjectAltPublicKeyInfo
public SubjectAltPublicKeyInfo(AlgorithmIdentifier algorithm, ASN1BitString subjectAltPublicKey)
-
SubjectAltPublicKeyInfo
public SubjectAltPublicKeyInfo(SubjectPublicKeyInfo subjectPublicKeyInfo)
-
-
Method Detail
-
getInstance
public static SubjectAltPublicKeyInfo getInstance(ASN1TaggedObject obj, boolean explicit)
-
getInstance
public static SubjectAltPublicKeyInfo getInstance(java.lang.Object obj)
-
fromExtensions
public static SubjectAltPublicKeyInfo fromExtensions(Extensions extensions)
-
getAlgorithm
public AlgorithmIdentifier getAlgorithm()
-
getSubjectAltPublicKey
public ASN1BitString getSubjectAltPublicKey()
-
toASN1Primitive
public ASN1Primitive toASN1Primitive()
Description copied from class:ASN1ObjectMethod providing a primitive representation of this object suitable for encoding.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-
-