java.lang.Object
cryptix.sasl.srp.SRPKey
cryptix.sasl.srp.SRPPrivateKey
- All Implemented Interfaces:
- java.security.Key, java.security.PrivateKey, java.io.Serializable
- public class SRPPrivateKey
- extends SRPKey
- implements java.security.PrivateKey
- Since:
- draft-burdis-cat-sasl-srp-04
- Version:
- $Revision: 1.1 $
Field Summary |
private java.math.BigInteger |
x
The private exponent for either the server or the client engaged in the
SRP protocol exchange. |
private byte[] |
xBytes
The byte representation of the above. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
private java.math.BigInteger x
- The private exponent for either the server or the client engaged in the
SRP protocol exchange.
xBytes
private byte[] xBytes
- The byte representation of the above. cached for speed.
SRPPrivateKey
public SRPPrivateKey(java.math.BigInteger n,
java.math.BigInteger g,
java.math.BigInteger x)
getBase
public java.math.BigInteger getBase()
- Returns the key as a java.math.BigInteger.
getBaseBytes
public byte[] getBaseBytes()
- Returns the base part of the key; ie. b if this is the public
key for a server, or a if it is for a client.