|
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.DHKey
*** For internal use only *** An abstract class for Diffie-Hellman keys.
Status: Provisional (may be changed in future releases.)
DHParams, DHPublicKey, DHPrivateKey, Serialized Form| Field Summary | |
protected DHParams |
params |
| Constructor Summary | |
protected |
DHKey() |
protected |
DHKey(DHParams params) |
protected |
DHKey(java.io.InputStream is) |
| Method Summary | |
abstract java.lang.Object |
clone()Create a deep clone of this DHKey object. |
java.lang.String |
getAlgorithm()Returns the algorithm for which this key is primarily used. |
int |
getBitLength()Returns the number of bits required to represent this key's defining key material |
byte[] |
getEncoded()Returns the encoded form of this key. |
DHParams |
getParams()Returns the Diffie-Hellman parameters for this key. |
void |
readExternal(java.io.ObjectInput is) |
abstract void |
setParams(DHParams params)Sets the parameters for the Diffie-Hellman key. |
void |
writeExternal(java.io.ObjectOutput os) |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.security.crypto.core.Key |
erase, getFormat |
| Methods inherited from interface oracle.security.crypto.util.Streamable |
input, length, output |
| Field Detail |
protected DHParams params
| Constructor Detail |
protected DHKey()
protected DHKey(DHParams params)
protected DHKey(java.io.InputStream is)
throws java.io.IOException
| Method Detail |
public java.lang.String getAlgorithm()
KeygetAlgorithm in interface Keypublic byte[] getEncoded()
KeygetEncoded in interface Keypublic int getBitLength()
Keyi.e. In the case of an RSA key, the modulus' bit length would be returned .
getBitLength in interface Keypublic abstract java.lang.Object clone()
DHKey object.clone in interface Keypublic DHParams getParams()
DHParams object, or null if none is present in this DHKey.public abstract void setParams(DHParams params)
params - An instance of DHParams.java.lang.IllegalArgumentException - If p, q or g is missing from the params.
public void writeExternal(java.io.ObjectOutput os)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput is)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundException
|
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 | |||||||||