java.lang.Object
cryptix.sasl.srp.SRPKey
cryptix.sasl.srp.SRPPublicKey
- All Implemented Interfaces:
- java.security.Key, java.security.PublicKey, java.io.Serializable
- public class SRPPublicKey
- extends SRPKey
- implements java.security.PublicKey
- Since:
- draft-burdis-cat-sasl-srp-04
- Version:
- $Revision: 1.1 $
Field Summary |
private java.math.BigInteger |
X
The public 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 public 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.
SRPPublicKey
public SRPPublicKey(java.math.BigInteger n,
java.math.BigInteger g,
java.math.BigInteger X)
getExponent
public java.math.BigInteger getExponent()
- Returns the (public) exponent as a java.math.BigInteger.
getExponentBytes
public byte[] getExponentBytes()
- Returns the public exponent part of the key; ie. B if this
is the public key for a server, or A if it is for a client.