net.handle.security
Class DHPrivateKeyImpl

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface javax.crypto.interfaces.DHPrivateKey
serialVersionUID
 
Constructor Summary
DHPrivateKeyImpl(java.math.BigInteger x, java.math.BigInteger p, java.math.BigInteger g)
           
 
Method Summary
 java.lang.String getAlgorithm()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 java.math.BigInteger getG()
           
 java.math.BigInteger getP()
           
 javax.crypto.spec.DHParameterSpec getParams()
           
 java.math.BigInteger getX()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHPrivateKeyImpl

public DHPrivateKeyImpl(java.math.BigInteger x,
                        java.math.BigInteger p,
                        java.math.BigInteger g)
Method Detail

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