@Alpha @Immutable public final class SecretBigInteger extends Object
SecretKeyAccess.| Modifier and Type | Method and Description |
|---|---|
boolean |
equalsSecretBigInteger(SecretBigInteger other)
Returns true if
other has the same secret value. |
static SecretBigInteger |
fromBigInteger(BigInteger value,
SecretKeyAccess access)
Creates a new SecretBigInteger with the content given in
value. |
BigInteger |
getBigInteger(SecretKeyAccess access)
Returns the value wrapped by this object.
|
public static SecretBigInteger fromBigInteger(BigInteger value, SecretKeyAccess access)
value.
The parameter access must be non-null.
public BigInteger getBigInteger(SecretKeyAccess access)
The parameter access must be non-null.
public boolean equalsSecretBigInteger(SecretBigInteger other)
other has the same secret value.
Note that the time may depend on the length of the byte-encoding of the BigIntegers.