public class WrappedPublicKey extends PublicKeyInfo
public_key_algorithm| Constructor and Description |
|---|
WrappedPublicKey() |
WrappedPublicKey(ASN1Object obj) |
WrappedPublicKey(byte[] arr) |
WrappedPublicKey(java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(byte[] publicKey)
Don't do anything with this method except return the passed in encoding
called by its superclass
|
protected byte[] |
encode()
Just return the encoded key
|
java.lang.String |
getAlgorithm()
Return a String representation of the AlgorithmID which will tell us the algorithm
to use
|
AlgorithmID |
getAlgorithmID() |
createPublicKeyInfo, decode, equals, getEncoded, getFingerprint, getFormat, getPublicKey, getPublicKey, toASN1Object, toString, writeTopublic WrappedPublicKey()
public WrappedPublicKey(ASN1Object obj) throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionpublic WrappedPublicKey(java.io.InputStream is)
throws java.security.InvalidKeyException,
java.io.IOException
java.security.InvalidKeyExceptionjava.io.IOExceptionpublic WrappedPublicKey(byte[] arr)
throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionprotected void decode(byte[] publicKey)
throws java.security.InvalidKeyException
decode in class PublicKeyInfopublicKey - the public key as DER encoded ASN.1 objectjava.security.InvalidKeyException - if something is wrong with the encoding of the keyprotected byte[] encode()
encode in class PublicKeyInfopublic java.lang.String getAlgorithm()
getAlgorithm in interface java.security.KeygetAlgorithm in class PublicKeyInfopublic AlgorithmID getAlgorithmID()