Skip navigation links

Oracle Security Developer Tools Crypto Java API Reference
11g (11.1.1)

E10668-02


oracle.security.crypto.core
Interface PrivateKey

All Superinterfaces:
ASN1Object, java.lang.Cloneable, java.io.Externalizable, Key, java.io.Serializable, Streamable
All Known Implementing Classes:
DHPrivateKey, DSAPrivateKey, PrivateKeyPKCS8, RSAPrivateKey, RSAPrivateKeyPKCS8

public interface PrivateKey
extends Key, ASN1Object

An interface for a private key.


Method Summary
 AlgorithmIdentifier getAlgID()
          Returns the algorithm identifier for this key.
 ASN1Object getContents()
          Returns the contents of this key.
 void initialize(AlgorithmIdentifier algID, ASN1Object contents)
          Initializes this instance from the given algorithm paramters and key contents.

 

Methods inherited from interface oracle.security.crypto.core.Key
clone, erase, getAlgorithm, getAllowExport, getBitLength, getEncoded, getFormat

 

Methods inherited from interface java.io.Externalizable
readExternal, writeExternal

 

Methods inherited from interface oracle.security.crypto.util.Streamable
input, length, output

 

Method Detail

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

Oracle Security Developer Tools Crypto Java API Reference
11g (11.1.1)

E10668-02


Copyright © 2005, 2009, Oracle. All rights reserved.