|
Oracle Security Developer Tools Crypto Java API Reference 10g (10.1.4.0.1) B28171-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.core.KeyAgreement
*** For internal use only *** An abstract class for public key agreement scheme.
Status: Provisional (may be changed in future releases.)
Constructor Summary | |
protected |
KeyAgreement() |
Method Summary | |
abstract java.lang.String |
algName() Returns the name of the key agreement algorithm. |
abstract byte[] |
generateSecret() Generate the shared secret value from the local party public key and the other party private key. |
abstract AlgorithmIdentifier |
getAlgID() |
static KeyAgreement |
getInstance(AlgorithmIdentifier algID) Create a new instance of the KeyAgreement subclass for the specified algorithm identifier. |
static KeyAgreement |
getInstance(PrivateKey privKey) Create a new instance of the KeyAgreement subclass for the specified key's algorithm and the local party PrivateKey. |
static KeyAgreement |
getInstance(PublicKey pubKey) Create a new instance of the KeyAgreement subclass for the specified key's algorithm and the other party public key. |
abstract PublicKey |
getPublicKey() Gets the public key of the other party. |
abstract void |
setAlgID(AlgorithmIdentifier algID) |
abstract void |
setPrivateKey(PrivateKey key) Sets the private key of the local party for generating secret value. |
abstract void |
setPublicKey(PublicKey key) Sets the public key of the other party for generating secret value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected KeyAgreement()
Method Detail |
public static KeyAgreement getInstance(AlgorithmIdentifier algID) throws AlgorithmIdentifierException
KeyAgreement
subclass for the specified algorithm identifier.algID
- One of the key agreement algorithm identifiers defined in AlgID
.AlgorithmIdentifierException
public static KeyAgreement getInstance(PrivateKey privKey) throws KeyAgreementException
KeyAgreement
subclass for the specified key's algorithm and the local party PrivateKey.privKey
- The private key for the local party.KeyAgreementException
public static KeyAgreement getInstance(PublicKey pubKey) throws KeyAgreementException
KeyAgreement
subclass for the specified key's algorithm and the other party public key.pubKey
- The public key for the other party.KeyAgreementException
public abstract void setAlgID(AlgorithmIdentifier algID) throws AlgorithmIdentifierException
AlgorithmIdentifierException
public abstract AlgorithmIdentifier getAlgID()
public abstract void setPrivateKey(PrivateKey key) throws InvalidKeyException
InvalidKeyException
public abstract byte[] generateSecret() throws KeyAgreementException
KeyAgreementException
public abstract void setPublicKey(PublicKey key) throws InvalidKeyException
InvalidKeyException
public abstract PublicKey getPublicKey()
public abstract java.lang.String algName()
|
Oracle Security Developer Tools Crypto Java API Reference 10g (10.1.4.0.1) B28171-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |