public class DHParameters extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static DHParameters |
DEFAULT
Default DHParameters as suggested by RFC 2786, usmDHParameters (p =
DHGroups.P1 , g = DHGroups.G ,
and private value length = 16. |
Constructor and Description |
---|
DHParameters(BigInteger prime,
BigInteger generator,
int privateValueLength) |
Modifier and Type | Method and Description |
---|---|
static OctetString |
encodeBER(BigInteger prime,
BigInteger generator,
int privateValueLength) |
boolean |
equals(Object o) |
static DHParameters |
getDHParametersFromBER(OctetString berValue) |
BigInteger |
getGenerator() |
BigInteger |
getPrime() |
int |
getPrivateValueLength() |
int |
hashCode() |
String |
toString() |
public static final DHParameters DEFAULT
DHGroups.P1
, g = DHGroups.G
,
and private value length = 16.public DHParameters(BigInteger prime, BigInteger generator, int privateValueLength)
public static OctetString encodeBER(BigInteger prime, BigInteger generator, int privateValueLength)
public static DHParameters getDHParametersFromBER(OctetString berValue) throws IOException
IOException
public BigInteger getPrime()
public BigInteger getGenerator()
public int getPrivateValueLength()
Copyright © 2021 SNMP4J.org. All rights reserved.