public class SubjectPublicKeyInfo extends
The getEncoded() method in the public keys in the JCE produces a DER encoded one of these.
| Constructor and Description |
|---|
SubjectPublicKeyInfo(AlgorithmIdentifier algId,
DEREncodable publicKey) |
SubjectPublicKeyInfo(org.bouncycastle.asn1.ASN1Sequence seq) |
| Modifier and Type | Method and Description |
|---|---|
AlgorithmIdentifier |
getAlgorithmId() |
static SubjectPublicKeyInfo |
getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj,
boolean explicit) |
static SubjectPublicKeyInfo |
getInstance(java.lang.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.
|
org.bouncycastle.asn1.DERBitString |
getPublicKeyData()
for when the public key is raw bits...
|
DERObject |
toASN1Object()
Produce an object suitable for an ASN1OutputStream.
|
public SubjectPublicKeyInfo(AlgorithmIdentifier algId, DEREncodable publicKey)
public SubjectPublicKeyInfo(org.bouncycastle.asn1.ASN1Sequence seq)
public static SubjectPublicKeyInfo getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)
public static SubjectPublicKeyInfo getInstance(java.lang.Object obj)
public AlgorithmIdentifier getAlgorithmId()
public DERObject getPublicKey()
throws java.io.IOException
java.io.IOException - - if the bit string doesn't represent a DER
encoded object.public org.bouncycastle.asn1.DERBitString getPublicKeyData()
public DERObject toASN1Object()
SubjectPublicKeyInfo ::= SEQUENCE {
algorithm AlgorithmIdentifier,
publicKey BIT STRING }