Package org.gudy.bouncycastle.asn1.x509
Class SubjectPublicKeyInfo
java.lang.Object
org.gudy.bouncycastle.asn1.ASN1Encodable
org.gudy.bouncycastle.asn1.x509.SubjectPublicKeyInfo
- All Implemented Interfaces:
DEREncodable
The object that contains the public key stored in a certficate.
The getEncoded() method in the public keys in the JCE produces a DER encoded one of these.
-
Field Summary
FieldsFields inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
BER, DER
-
Constructor Summary
ConstructorsConstructorDescriptionSubjectPublicKeyInfo
(AlgorithmIdentifier algId, byte[] publicKey) SubjectPublicKeyInfo
(AlgorithmIdentifier algId, DEREncodable publicKey) -
Method Summary
Modifier and TypeMethodDescriptionstatic SubjectPublicKeyInfo
getInstance
(Object obj) static SubjectPublicKeyInfo
getInstance
(ASN1TaggedObject obj, boolean explicit) for when the public key is an encoded object - if the bitstring can't be decoded this routine throws an IOException.for when the public key is raw bits...Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
-
Field Details
-
algId
-
keyData
-
-
Constructor Details
-
SubjectPublicKeyInfo
-
SubjectPublicKeyInfo
-
SubjectPublicKeyInfo
-
-
Method Details
-
getInstance
-
getInstance
-
getAlgorithmId
-
getPublicKey
for when the public key is an encoded object - if the bitstring can't be decoded this routine throws an IOException.- Throws:
IOException
- - if the bit string doesn't represent a DER encoded object.
-
getPublicKeyData
for when the public key is raw bits... -
toASN1Object
Produce an object suitable for an ASN1OutputStream.SubjectPublicKeyInfo ::= SEQUENCE { algorithm AlgorithmIdentifier, publicKey BIT STRING }
- Specified by:
toASN1Object
in classASN1Encodable
-