net.handle.security
Class DHPublicKeyImpl

java.lang.Object
  extended by net.handle.security.DHPublicKeyImpl
All Implemented Interfaces:
java.io.Serializable, java.security.Key, java.security.PublicKey, javax.crypto.interfaces.DHKey, javax.crypto.interfaces.DHPublicKey

public class DHPublicKeyImpl
extends java.lang.Object
implements javax.crypto.interfaces.DHPublicKey

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.crypto.interfaces.DHPublicKey
serialVersionUID
 
Constructor Summary
DHPublicKeyImpl(java.math.BigInteger y, 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 getY()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHPublicKeyImpl

public DHPublicKeyImpl(java.math.BigInteger y,
                       java.math.BigInteger p,
                       java.math.BigInteger g)
Method Detail

getY

public java.math.BigInteger getY()
Specified by:
getY in interface javax.crypto.interfaces.DHPublicKey

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