public class DH
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected javax.crypto.KeyAgreement |
agreement |
protected java.security.KeyPairGenerator |
generator |
| Constructor and Description |
|---|
DH() |
protected final java.security.KeyPairGenerator generator
protected final javax.crypto.KeyAgreement agreement
protected void init(java.security.spec.AlgorithmParameterSpec params)
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionpublic java.math.BigInteger getP()
public java.math.BigInteger getG()
public byte[] getE()
public java.math.BigInteger getK()