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
| 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)
|
| 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 |
DHKey
protected DHKey(java.math.BigInteger p,
java.math.BigInteger g)
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