The getEncoded() method in the public keys in the JCE produces a DER encoded one of these.
| Modifier and Type | Field and Description |
|---|---|
| private AlgorithmIdentifier | |
| private ASN1BitString |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AlgorithmIdentifier | |
| public AlgorithmIdentifier | |
| public static SubjectPublicKeyInfo | |
| public static SubjectPublicKeyInfo | |
| public ASN1Primitive | Returns: the public key as an ASN.1 primitive.
Deprecated
use parsePublicKey
for when the public key is an encoded object - if the bitstring
can't be decoded this routine throws an IOException.
|
| public ASN1BitString | Returns: the public key as the raw bit string...for when the public key is raw bits. |
| public ASN1Primitive | Returns: the public key as an ASN.1 primitive.for when the public key is an encoded object - if the bitstring can't be decoded this routine throws an IOException. |
| public ASN1Primitive | toASN1Primitive()
Implements abstract org. Implements org. |
| algId | back to summary |
|---|---|
| private AlgorithmIdentifier algId | |
| keyData | back to summary |
|---|---|
| private ASN1BitString keyData | |
| SubjectPublicKeyInfo | back to summary |
|---|---|
| public SubjectPublicKeyInfo(AlgorithmIdentifier algId, ASN1BitString publicKey) | |
| SubjectPublicKeyInfo | back to summary |
|---|---|
| public SubjectPublicKeyInfo(AlgorithmIdentifier algId, ASN1Encodable publicKey) throws IOException | |
| SubjectPublicKeyInfo | back to summary |
|---|---|
| public SubjectPublicKeyInfo(AlgorithmIdentifier algId, byte[] publicKey) | |
| SubjectPublicKeyInfo | back to summary |
|---|---|
| public SubjectPublicKeyInfo(ASN1Sequence seq)
Deprecated use SubjectPublicKeyInfo.getInstance() | |
| getAlgorithm | back to summary |
|---|---|
| public AlgorithmIdentifier getAlgorithm() | |
| getAlgorithmId | back to summary |
|---|---|
| public AlgorithmIdentifier getAlgorithmId()
Deprecated use getAlgorithm()
| |
| getInstance | back to summary |
|---|---|
| public static SubjectPublicKeyInfo getInstance(ASN1TaggedObject obj, boolean explicit) | |
| getInstance | back to summary |
|---|---|
| public static SubjectPublicKeyInfo getInstance(Object obj) | |
| getPublicKey | back to summary |
|---|---|
| public ASN1Primitive getPublicKey() throws IOException
Deprecated use parsePublicKey for when the public key is an encoded object - if the bitstring can't be decoded this routine throws an IOException.
| |
| getPublicKeyData | back to summary |
|---|---|
| public ASN1BitString getPublicKeyData() for when the public key is raw bits.
| |
| parsePublicKey | back to summary |
|---|---|
| public ASN1Primitive parsePublicKey() throws IOException for when the public key is an encoded object - if the bitstring can't be decoded this routine throws an IOException.
| |
| toASN1Primitive | back to summary |
|---|---|
| public ASN1Primitive toASN1Primitive() Implements abstract org. Implements org. Produce an object suitable for an ASN1OutputStream.
SubjectPublicKeyInfo ::= SEQUENCE {
algorithm AlgorithmIdentifier,
publicKey BIT STRING }
| |