org.bouncycastle.asn1.x509
Class SubjectPublicKeyInfo
- DEREncodable
public class SubjectPublicKeyInfo
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.
SubjectPublicKeyInfo
public SubjectPublicKeyInfo(ASN1Sequence seq)
getPublicKey
public DERObject getPublicKey()
throws IOException
for when the public key is an encoded object - if the bitstring
can't be decoded this routine throws an IOException.
getPublicKeyData
public DERBitString getPublicKeyData()
for when the public key is raw bits...
toASN1Object
public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
SubjectPublicKeyInfo ::= SEQUENCE {
algorithm AlgorithmIdentifier,
publicKey BIT STRING }
- toASN1Object in interface ASN1Encodable