public class ExternalPublicKey
extends java.lang.Object
implements java.security.PublicKey
Constructor and Description |
---|
ExternalPublicKey(ExternalValue extKey)
Base constructor with ASN.1 structure.
|
ExternalPublicKey(GeneralName location,
AlgorithmIdentifier digestAlg,
byte[] digest)
Base constructor with fundamental contents.
|
ExternalPublicKey(java.security.PublicKey key,
GeneralName location,
java.security.MessageDigest digest)
Helper constructor with JCA contents.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithm()
Return "ExternalKey"
|
byte[] |
getEncoded()
Return a SubjectPublicKeyInfo structure containing an ExternalValue encoding for the key.
|
java.lang.String |
getFormat()
Return "X.509" (DER encoded SubjectPublicKeyInfo)
|
public ExternalPublicKey(GeneralName location, AlgorithmIdentifier digestAlg, byte[] digest)
location
- location URI for the actual public key.digestAlg
- hashing algorithm used to hash the actual public key encoding.digest
- digest of the actual public key.public ExternalPublicKey(java.security.PublicKey key, GeneralName location, java.security.MessageDigest digest)
key
- the public key we are externalising.location
- location URI for the actual public key.digest
- digest to use for hashing the key.public ExternalPublicKey(ExternalValue extKey)
extKey
- structure with location, hashing algorithm and hash for the public key.public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public byte[] getEncoded()
getEncoded
in interface java.security.Key