public final class Helper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.math.BigInteger |
computeDHKey(int group,
java.math.BigInteger response,
java.math.BigInteger rand) |
static java.lang.String |
fromFileNameString(java.lang.String s) |
static byte[] |
fromHexString(java.lang.String s) |
static java.math.BigInteger |
generateDHResponse(int group,
java.math.BigInteger rand) |
static java.math.BigInteger |
getDHGroup(int group) |
static java.util.Set<java.lang.Class<?>> |
interfaceSet(java.lang.Class<?> interfaceClass) |
static boolean |
isDHGroupSupported(int group) |
static java.math.BigInteger |
makeDHRandom() |
static byte[] |
makeRandValues(int bytes) |
static java.lang.String |
toFileNameString(java.lang.String s) |
static java.lang.String |
toHexString(byte[] b) |
static java.lang.String |
toHexString(byte[] b,
int off,
int len) |
public static byte[] makeRandValues(int bytes)
public static java.lang.String toHexString(byte[] b)
public static java.lang.String toHexString(byte[] b, int off, int len)
public static byte[] fromHexString(java.lang.String s)
public static java.lang.String toFileNameString(java.lang.String s)
public static java.lang.String fromFileNameString(java.lang.String s)
public static java.util.Set<java.lang.Class<?>> interfaceSet(java.lang.Class<?> interfaceClass)
public static boolean isDHGroupSupported(int group)
public static java.math.BigInteger getDHGroup(int group)
public static java.math.BigInteger makeDHRandom()
public static java.math.BigInteger generateDHResponse(int group, java.math.BigInteger rand)
public static java.math.BigInteger computeDHKey(int group, java.math.BigInteger response, java.math.BigInteger rand)