|
|||||||||
Home >> All >> cryptix >> sasl >> [ srp overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
cryptix.sasl.srp
Class SRPKey

java.lang.Objectcryptix.sasl.srp.SRPKey
- All Implemented Interfaces:
- java.security.Key, java.io.Serializable
- Direct Known Subclasses:
- SRPPrivateKey, SRPPublicKey
- public abstract class SRPKey
- extends java.lang.Object
- implements java.security.Key, java.io.Serializable
- extends java.lang.Object
- Since:
- draft-burdis-cat-sasl-srp-04
- Version:
- $Revision: 1.1 $
Field Summary | |
protected java.math.BigInteger |
g
The generator. |
protected byte[] |
gBytes
Same as above. |
protected java.math.BigInteger |
n
The public shared modulus. |
protected byte[] |
nBytes
Same as above. |
Fields inherited from interface java.security.Key |
serialVersionUID |
Constructor Summary | |
SRPKey(java.math.BigInteger n,
java.math.BigInteger g)
|
Method Summary | |
java.lang.String |
getAlgorithm()
Returns the standard algorithm name for this key. |
byte[] |
getEncoded()
Returns null since this implementation does not encode SRP keys. |
java.lang.String |
getFormat()
Returns null since this implementation does not encode SRP keys. |
java.math.BigInteger |
getGenerator()
Returns the generator. |
byte[] |
getGeneratorBytes()
Returns the generator. |
java.math.BigInteger |
getModulus()
Returns the public shared modulus. |
byte[] |
getModulusBytes()
Returns the public shared modulus. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
n
protected java.math.BigInteger n
- The public shared modulus.
nBytes
protected byte[] nBytes
- Same as above. Cached for speed.
g
protected java.math.BigInteger g
- The generator.
gBytes
protected byte[] gBytes
- Same as above. Cached for speed.
Constructor Detail |
SRPKey
public SRPKey(java.math.BigInteger n, java.math.BigInteger g)
Method Detail |
getAlgorithm
public java.lang.String getAlgorithm()
- Returns the standard algorithm name for this key.
- Specified by:
getAlgorithm
in interfacejava.security.Key
getEncoded
public byte[] getEncoded()
- Returns null since this implementation does not encode SRP keys.
- Specified by:
getEncoded
in interfacejava.security.Key
getFormat
public java.lang.String getFormat()
- Returns null since this implementation does not encode SRP keys.
- Specified by:
getFormat
in interfacejava.security.Key
getModulus
public java.math.BigInteger getModulus()
- Returns the public shared modulus.
getModulusBytes
public byte[] getModulusBytes()
- Returns the public shared modulus.
getGenerator
public java.math.BigInteger getGenerator()
- Returns the generator.
getGeneratorBytes
public byte[] getGeneratorBytes()
- Returns the generator.
|
|||||||||
Home >> All >> cryptix >> sasl >> [ srp overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |