gnu.crypto.key.srp6
public abstract class SRPKey extends Object implements Key, Serializable
An abstract representation of a base SRP ephemeral key.
This object encapsulates the two numbers:
Note that in SRP, all arithmetic is done modulo N.
Reference:
Version: $Revision: 1.2 $
Field Summary | |
---|---|
protected BigInteger | g The generator. |
protected BigInteger | N The public, Germaine prime, shared modulus. |
Constructor Summary | |
---|---|
protected | SRPKey(BigInteger N, BigInteger g) |
Method Summary | |
---|---|
boolean | equals(Object obj) Returns |
String | getAlgorithm() Returns the standard algorithm name for this key. |
byte[] | getEncoded() |
abstract byte[] | getEncoded(int format) |
String | getFormat() Returns |
BigInteger | getG() Returns the generator. |
BigInteger | getN() Returns the public shared modulus. |
Returns true
if the designated object is an instance of
SRPKey
and has the same SRP parameter values as this one.
Parameters: obj the other non-null SRP key to compare to.
Returns: true
if the designated object is of the same type and
value as this one.
Returns the standard algorithm name for this key.
Returns: the standard algorithm name for this key.
Deprecated: see getEncoded(int).
Returns null
since this implementation does not encode SRP
keys.
Returns: null since this implementation does not encode SRP keys.
Returns the generator.
Returns: g
.
Returns the public shared modulus.
Returns: N
.