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 DERBitString |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public AlgorithmIdentifier | |
| public static SubjectPublicKeyInfo | |
| public static SubjectPublicKeyInfo | |
| public DERBitString | 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 DERBitString keyData | |
| 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 |
|---|---|
| private SubjectPublicKeyInfo(ASN1Sequence seq) | |
| getAlgorithm | back to summary |
|---|---|
| public AlgorithmIdentifier getAlgorithm() | |
| getInstance | back to summary |
|---|---|
| public static SubjectPublicKeyInfo getInstance(ASN1TaggedObject obj, boolean explicit) | |
| getInstance | back to summary |
|---|---|
| public static SubjectPublicKeyInfo getInstance(Object obj) | |
| getPublicKeyData | back to summary |
|---|---|
| public DERBitString 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 }
| |