net.ripe.rpki.commons.crypto.util
Class EncodedPublicKey

java.lang.Object
  extended by net.ripe.rpki.commons.crypto.util.EncodedPublicKey
All Implemented Interfaces:
Serializable, Key, PublicKey

public class EncodedPublicKey
extends Object
implements PublicKey

While software keys can be persisted nCipher keys cannot. For KeyPairEntity we put them into a keystore but that did not fit into the architecture for ResourceCertificateRequestData. ResourceCertificateRequestData contains the encoded representation of the subject public key and when it fed into the ResourceCertificateBuilder (which send it further to X509CertificateBuilder) it is wrapped into this class. As long as only the encoded representation of the key is used this is sufficient.

See Also:
Serialized Form

Constructor Summary
EncodedPublicKey(byte[] encoded)
           
 
Method Summary
 String getAlgorithm()
           
 byte[] getEncoded()
           
 String getFormat()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncodedPublicKey

public EncodedPublicKey(byte[] encoded)
Method Detail

getEncoded

public byte[] getEncoded()
Specified by:
getEncoded in interface Key

getAlgorithm

public String getAlgorithm()
Specified by:
getAlgorithm in interface Key

getFormat

public String getFormat()
Specified by:
getFormat in interface Key


Copyright © 2008-2015 RIPE NCC, the Netherlands. All Rights Reserved.