Skip navigation links
oracle.security.crypto.core
Interface PrivateKey
- All Superinterfaces:
- ASN1Object, java.lang.Cloneable, java.io.Externalizable, java.security.Key, java.security.PrivateKey, java.io.Serializable, Streamable
-
public interface PrivateKey
- extends Key, ASN1Object, java.security.PrivateKey
An interface for a private key.
Fields inherited from interface java.security.PrivateKey |
serialVersionUID |
Methods inherited from interface java.io.Externalizable |
readExternal, writeExternal |
initialize
void initialize(AlgorithmIdentifier algID,
ASN1Object contents)
throws AlgorithmIdentifierException,
InvalidInputException
- Initializes this instance from the given algorithm paramters and key contents.
-
- Throws:
AlgorithmIdentifierException
InvalidInputException
getAlgID
AlgorithmIdentifier getAlgID()
- Returns the algorithm identifier for this key.
getContents
ASN1Object getContents()
- Returns the contents of this key.
Skip navigation links
Copyright © 2005, 2013, Oracle. All rights reserved.