org.mozilla.jss.pkix.primitive
public class SubjectPublicKeyInfo extends X509EncodedKeySpec implements ASN1Value, PublicKey
java.security.PublicKey
.
Nested Class Summary | |
---|---|
static class | SubjectPublicKeyInfo.Template |
Field Summary | |
---|---|
static Tag | TAG |
Constructor Summary | |
---|---|
SubjectPublicKeyInfo(AlgorithmIdentifier algorithm, BIT_STRING subjectPublicKey) | |
SubjectPublicKeyInfo(PublicKey pubk) |
Method Summary | |
---|---|
void | encode(OutputStream ostream) |
void | encode(Tag implicit, OutputStream ostream) |
String | getAlgorithm() |
AlgorithmIdentifier | getAlgorithmIdentifier() |
byte[] | getEncoded() |
BIT_STRING | getSubjectPublicKey() |
Tag | getTag() |
static SubjectPublicKeyInfo.Template | getTemplate() |
PublicKey | toPublicKey()
Creates a PublicKey from the public key information. |
Throws: NoSuchAlgorithmException If the cryptographic provider does not recognize the algorithm for this public key. InvalidKeyFormatException If the subjectPublicKey could not be decoded correctly.