net.handle.security
Class DHPrivateKeyImpl
java.lang.Object
net.handle.security.DHPrivateKeyImpl
- All Implemented Interfaces:
- java.io.Serializable, java.security.Key, java.security.PrivateKey, javax.crypto.interfaces.DHKey, javax.crypto.interfaces.DHPrivateKey
public class DHPrivateKeyImpl
- extends java.lang.Object
- implements javax.crypto.interfaces.DHPrivateKey
- See Also:
- Serialized Form
Fields inherited from interface javax.crypto.interfaces.DHPrivateKey |
serialVersionUID |
Constructor Summary |
DHPrivateKeyImpl(java.math.BigInteger x,
java.math.BigInteger p,
java.math.BigInteger g)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DHPrivateKeyImpl
public DHPrivateKeyImpl(java.math.BigInteger x,
java.math.BigInteger p,
java.math.BigInteger g)
getX
public java.math.BigInteger getX()
- Specified by:
getX
in interface javax.crypto.interfaces.DHPrivateKey
getP
public java.math.BigInteger getP()
getG
public java.math.BigInteger getG()
getParams
public javax.crypto.spec.DHParameterSpec getParams()
- Specified by:
getParams
in interface javax.crypto.interfaces.DHKey
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithm
in interface java.security.Key
getFormat
public java.lang.String getFormat()
- Specified by:
getFormat
in interface java.security.Key
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interface java.security.Key