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

public Class SubjectAltPublicKeyInfo

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1BitString, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERSequence

X.509 Section 9.8.2.
This public-key certificate extension, when present, shall contain the subject’s alternative public key information
subjectAltPublicKeyInfo EXTENSION ::= {
     SYNTAX SubjectAltPublicKeyInfo
     IDENTIFIED BY id-ce-subjectAltPublicKeyInfo }

SubjectAltPublicKeyInfo ::= SEQUENCE {
    algorithm AlgorithmIdentifier{{SupportedAlgorithms}},
    subjectAltPublicKey BIT STRING }
The SubjectAltPublicKeyInfo data type has the following components: This extension may be flagged as critical or as non-critical.
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.

Field Summary

Modifier and TypeField and Description
private AlgorithmIdentifier
private ASN1BitString

Constructor Summary

AccessConstructor and Description
private
public
public

Method Summary

Modifier and TypeMethod and Description
public static SubjectAltPublicKeyInfo
public AlgorithmIdentifier
public static SubjectAltPublicKeyInfo
getInstance(ASN1TaggedObject obj, boolean explicit)

public static SubjectAltPublicKeyInfo
public ASN1BitString
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 AlgorithmIdentifier algorithm
subjectAltPublicKeyback to summary
private ASN1BitString subjectAltPublicKey

Constructor Detail

SubjectAltPublicKeyInfoback to summary
private SubjectAltPublicKeyInfo(ASN1Sequence s)
SubjectAltPublicKeyInfoback to summary
public SubjectAltPublicKeyInfo(AlgorithmIdentifier algorithm, ASN1BitString subjectAltPublicKey)
SubjectAltPublicKeyInfoback to summary
public SubjectAltPublicKeyInfo(SubjectPublicKeyInfo subjectPublicKeyInfo)

Method Detail

fromExtensionsback to summary
public static SubjectAltPublicKeyInfo fromExtensions(Extensions extensions)
getAlgorithmback to summary
public AlgorithmIdentifier getAlgorithm()
getInstanceback to summary
public static SubjectAltPublicKeyInfo getInstance(ASN1TaggedObject obj, boolean explicit)
getInstanceback to summary
public static SubjectAltPublicKeyInfo getInstance(Object obj)
getSubjectAltPublicKeyback to summary
public ASN1BitString getSubjectAltPublicKey()
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.