com.mindbright.security.publickey
Class DHKey

java.lang.Object
  |
  +--com.mindbright.jce.crypto.spec.DHParamsImpl
        |
        +--com.mindbright.jce.crypto.spec.DHParameterSpec
              |
              +--com.mindbright.security.publickey.DHKey
All Implemented Interfaces:
com.mindbright.jca.security.spec.AlgorithmParameterSpec, com.mindbright.jce.crypto.interfaces.DHKey, com.mindbright.jca.security.Key, java.io.Serializable
Direct Known Subclasses:
DHPrivateKey, DHPublicKey

public class DHKey
extends com.mindbright.jce.crypto.spec.DHParameterSpec
implements com.mindbright.jce.crypto.interfaces.DHKey, com.mindbright.jca.security.Key

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mindbright.jce.crypto.spec.DHParameterSpec
l
 
Fields inherited from class com.mindbright.jce.crypto.spec.DHParamsImpl
g, p
 
Constructor Summary
protected DHKey(java.math.BigInteger p, java.math.BigInteger g)
           
 
Method Summary
 java.lang.String getAlgorithm()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 com.mindbright.jce.crypto.spec.DHParameterSpec getParams()
           
 
Methods inherited from class com.mindbright.jce.crypto.spec.DHParameterSpec
getL
 
Methods inherited from class com.mindbright.jce.crypto.spec.DHParamsImpl
getG, getP
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHKey

protected DHKey(java.math.BigInteger p,
                java.math.BigInteger g)
Method Detail

getAlgorithm

public java.lang.String getAlgorithm()
Specified by:
getAlgorithm in interface com.mindbright.jca.security.Key

getFormat

public java.lang.String getFormat()
Specified by:
getFormat in interface com.mindbright.jca.security.Key

getEncoded

public byte[] getEncoded()
Specified by:
getEncoded in interface com.mindbright.jca.security.Key

getParams

public com.mindbright.jce.crypto.spec.DHParameterSpec getParams()
Specified by:
getParams in interface com.mindbright.jce.crypto.interfaces.DHKey