Save This Page
Home » openjdk-7 » java » security » spec » [javadoc | source]
abstract public class: EncodedKeySpec [javadoc | source]

All Implemented Interfaces:

Direct Known Subclasses:
    X509EncodedKeySpec, PKCS8EncodedKeySpec

This class represents a public or private key in encoded format.
 public EncodedKeySpec(byte[] encodedKey) 
Method from Summary:
getEncoded,   getFormat
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from Detail:
 public byte[] getEncoded() 
    Returns the encoded key.
 abstract public String getFormat()
    Returns the name of the encoding format associated with this key specification.

    If the opaque representation of a key (see Key ) can be transformed (see KeyFactory ) into this key specification (or a subclass of it), getFormat called on the opaque key returns the same value as the getFormat method of this key specification.