au.net.aba.crypto.provider
Class DHPrivKey
java.lang.Object
|
+--au.net.aba.crypto.provider.DHPrivKey
- public class DHPrivKey
- extends java.lang.Object
- implements DHPrivateKey
a class representing a Diffie-Hellman private key - note: INCOMPLETE.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
ident
|
Method Summary |
java.lang.String |
getAlgorithm()
return the algorithm for this key. |
byte[] |
getEncoded()
return an encoded representation for this key. |
java.lang.String |
getFormat()
return the format this key is in. |
DHParameterSpec |
getParams()
Returns the key parameters. |
java.math.BigInteger |
getX()
Returns the private value, x. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ident
public static final java.lang.String ident
getX
public java.math.BigInteger getX()
- Returns the private value, x.
- Specified by:
- getX in interface DHPrivateKey
- Returns:
- the private value, x
getParams
public DHParameterSpec getParams()
- Returns the key parameters.
- Returns:
- the key parameters.
getAlgorithm
public java.lang.String getAlgorithm()
- return the algorithm for this key.
getFormat
public java.lang.String getFormat()
- return the format this key is in.
getEncoded
public byte[] getEncoded()
- return an encoded representation for this key.