|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.asn1.ASN1Object | +--org.bouncycastle.asn1.x509.SubjectPublicKeyInfo
The object that contains the public key stored in a certificate.
The getEncoded() method in the public keys in the JCE produces a DER encoded one of these.
Constructor Summary | |
SubjectPublicKeyInfo(AlgorithmIdentifier algId,
ASN1BitString publicKey)
|
|
SubjectPublicKeyInfo(AlgorithmIdentifier algId,
ASN1Encodable publicKey)
|
|
SubjectPublicKeyInfo(AlgorithmIdentifier algId,
byte[] publicKey)
|
|
SubjectPublicKeyInfo(ASN1Sequence seq)
Deprecated. use SubjectPublicKeyInfo.getInstance() |
Method Summary | |
AlgorithmIdentifier |
getAlgorithm()
|
AlgorithmIdentifier |
getAlgorithmId()
Deprecated. use getAlgorithm() |
static SubjectPublicKeyInfo |
getInstance(ASN1TaggedObject obj,
boolean explicit)
|
static SubjectPublicKeyInfo |
getInstance(java.lang.Object obj)
|
ASN1Primitive |
getPublicKey()
Deprecated. use parsePublicKey |
ASN1BitString |
getPublicKeyData()
for when the public key is raw bits. |
ASN1Primitive |
parsePublicKey()
for when the public key is an encoded object - if the bitstring can't be decoded this routine throws an IOException. |
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream. |
Methods inherited from class org.bouncycastle.asn1.ASN1Object |
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SubjectPublicKeyInfo(AlgorithmIdentifier algId, ASN1BitString publicKey)
public SubjectPublicKeyInfo(AlgorithmIdentifier algId, ASN1Encodable publicKey) throws java.io.IOException
public SubjectPublicKeyInfo(AlgorithmIdentifier algId, byte[] publicKey)
public SubjectPublicKeyInfo(ASN1Sequence seq)
Method Detail |
public static SubjectPublicKeyInfo getInstance(ASN1TaggedObject obj, boolean explicit)
public static SubjectPublicKeyInfo getInstance(java.lang.Object obj)
public AlgorithmIdentifier getAlgorithm()
public AlgorithmIdentifier getAlgorithmId()
public ASN1Primitive parsePublicKey() throws java.io.IOException
java.io.IOException
- - if the bit string doesn't represent a DER
encoded object.public ASN1Primitive getPublicKey() throws java.io.IOException
java.io.IOException
- - if the bit string doesn't represent a DER
encoded object.public ASN1BitString getPublicKeyData()
public ASN1Primitive toASN1Primitive()
toASN1Primitive
in class ASN1Object
org.bouncycastle.asn1.ASN1Object
|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |