org.bouncycastle.asn1.x509
public class SubjectPublicKeyInfo extends ASN1Encodable
The getEncoded() method in the public keys in the JCE produces a DER encoded one of these.
| Constructor Summary | |
|---|---|
| SubjectPublicKeyInfo(AlgorithmIdentifier algId, DEREncodable publicKey) | |
| SubjectPublicKeyInfo(AlgorithmIdentifier algId, byte[] publicKey) | |
| SubjectPublicKeyInfo(ASN1Sequence seq) | |
| Method Summary | |
|---|---|
| AlgorithmIdentifier | getAlgorithmId() |
| static SubjectPublicKeyInfo | getInstance(ASN1TaggedObject obj, boolean explicit) |
| static SubjectPublicKeyInfo | getInstance(Object obj) |
| DERObject | getPublicKey()
for when the public key is an encoded object - if the bitstring
can't be decoded this routine throws an IOException.
|
| DERBitString | getPublicKeyData()
for when the public key is raw bits... |
| DERObject | toASN1Object()
Produce an object suitable for an ASN1OutputStream.
|
Throws: IOException - if the bit string doesn't represent a DER encoded object.
SubjectPublicKeyInfo ::= SEQUENCE {
algorithm AlgorithmIdentifier,
publicKey BIT STRING }