public class X509SubjectPublicKeyInfo extends DERDecoder
SubjectPublicKeyInfo ::= SEQUENCE {
algorithm AlgorithmIdentifier,
subjectPublicKey BIT STRING }
AlgorithmIdentifier ::= SEQUENCE {
algorithm OBJECT IDENTIFIER,
parameters ANY DEFINED BY algorithm OPTIONAL }
TYPE_BIT_STRING, TYPE_OCTET_STRING, TYPE_SEQUENCE| Constructor and Description |
|---|
X509SubjectPublicKeyInfo(byte[] x509EncodedPublicKey)
Construct a SubjectPublicKeyInfo for the given X.509-encoded public key.
|
X509SubjectPublicKeyInfo(PublicKey key)
Construct a SubjectPublicKeyInfo for the given public key.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getSubjectPublicKey()
Get the subjectPublicKey element of the SubjectPublicKeyInfo.
|
public X509SubjectPublicKeyInfo(PublicKey key) throws WSSecurityException
key - the public key.WSSecurityException - if the public key encoding format is
not X.509 or the encoding is null.public X509SubjectPublicKeyInfo(byte[] x509EncodedPublicKey)
throws WSSecurityException
x509EncodedPublicKey - the public key, in X.509 DER-encoding.WSSecurityException - if the encoded public key is null.public byte[] getSubjectPublicKey()
throws WSSecurityException
WSSecurityException - the DER-encoding is invalid.Copyright © 2017 JBoss by Red Hat. All rights reserved.