|
Bouncy Castle Cryptography Library 1.81 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.jcajce.ExternalPublicKey
Wrapper class which returns an "ExternalValue" for the public key encoding. In this case the key encoding is a hash and the actual key needs to be looked up somewhere else. Useful for where the public keys are really large but it's required to keep certificates small.
| Field Summary |
| Fields inherited from interface java.security.PublicKey |
serialVersionUID |
| Constructor Summary | |
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. |
|
| Method Summary | |
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) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
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.| Method Detail |
public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic byte[] getEncoded()
getEncoded in interface java.security.Key
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||