| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.util.asn1.ASN1Encodable
org.apache.geronimo.util.asn1.x509.SubjectPublicKeyInfo
public class SubjectPublicKeyInfo
The object that contains the public key stored in a certficate.
The getEncoded() method in the public keys in the JCE produces a DER encoded one of these.
| Constructor Summary | |
|---|---|
| SubjectPublicKeyInfo(AlgorithmIdentifier algId,
                                         byte[] publicKey) | |
| SubjectPublicKeyInfo(AlgorithmIdentifier algId,
                                         DEREncodable 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. | 
| Methods inherited from class org.apache.geronimo.util.asn1.ASN1Encodable | 
|---|
| equals, getDERObject, getEncoded, hashCode | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SubjectPublicKeyInfo(AlgorithmIdentifier algId,
                            DEREncodable publicKey)
public SubjectPublicKeyInfo(AlgorithmIdentifier algId,
                            byte[] publicKey)
public SubjectPublicKeyInfo(ASN1Sequence seq)
| Method Detail | 
|---|
public static SubjectPublicKeyInfo getInstance(ASN1TaggedObject obj,
                                               boolean explicit)
public static SubjectPublicKeyInfo getInstance(Object obj)
public AlgorithmIdentifier getAlgorithmId()
public DERObject getPublicKey()
                       throws IOException
IOException - - if the bit string doesn't represent a DER
 encoded object.public DERBitString getPublicKeyData()
public DERObject toASN1Object()
 SubjectPublicKeyInfo ::= SEQUENCE {
                          algorithm AlgorithmIdentifier,
                          publicKey BIT STRING }
 
toASN1Object in class ASN1Encodable| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||