Package org.apache.harmony.security.x509
Class SubjectPublicKeyInfo
- java.lang.Object
-
- org.apache.harmony.security.x509.SubjectPublicKeyInfo
-
public final class SubjectPublicKeyInfo extends Object
The class encapsulates the ASN.1 DER encoding/decoding work with the following structure which is a part of X.509 certificate (as specified in RFC 3280 - Internet X.509 Public Key Infrastructure. Certificate and Certificate Revocation List (CRL) Profile. http://www.ietf.org/rfc/rfc3280.txt):SubjectPublicKeyInfo ::= SEQUENCE { algorithm AlgorithmIdentifier, subjectPublicKey BIT STRING }
-
-
Field Summary
Fields Modifier and Type Field Description static ASN1SequenceASN1
-
Constructor Summary
Constructors Constructor Description SubjectPublicKeyInfo(AlgorithmIdentifier algID, byte[] subjectPublicKey)SubjectPublicKeyInfo(AlgorithmIdentifier algID, byte[] subjectPublicKey, int unused)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlgorithmIdentifiergetAlgorithmIdentifier()Returns the value of algorithmIdentifier field of the structure.byte[]getEncoded()Returns ASN.1 encoded form of this X.509 SubjectPublicKeyInfo value.PublicKeygetPublicKey()Returns the PublicKey corresponding to this SubjectPublicKeyInfo instance.byte[]getSubjectPublicKey()Returns the value of subjectPublicKey field of the structure.
-
-
-
Field Detail
-
ASN1
public static final ASN1Sequence ASN1
-
-
Constructor Detail
-
SubjectPublicKeyInfo
public SubjectPublicKeyInfo(AlgorithmIdentifier algID, byte[] subjectPublicKey)
-
SubjectPublicKeyInfo
public SubjectPublicKeyInfo(AlgorithmIdentifier algID, byte[] subjectPublicKey, int unused)
-
-
Method Detail
-
getAlgorithmIdentifier
public AlgorithmIdentifier getAlgorithmIdentifier()
Returns the value of algorithmIdentifier field of the structure.
-
getSubjectPublicKey
public byte[] getSubjectPublicKey()
Returns the value of subjectPublicKey field of the structure.
-
getEncoded
public byte[] getEncoded()
Returns ASN.1 encoded form of this X.509 SubjectPublicKeyInfo value.
-
getPublicKey
public PublicKey getPublicKey()
Returns the PublicKey corresponding to this SubjectPublicKeyInfo instance.
-
-