Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cryptix.sasl.srp
Class SRPPrivateKey  view SRPPrivateKey download SRPPrivateKey.java

java.lang.Object
  extended bycryptix.sasl.srp.SRPKey
      extended bycryptix.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.
 
Fields inherited from class cryptix.sasl.srp.SRPKey
g, gBytes, n, nBytes
 
Fields inherited from interface java.security.PrivateKey
serialVersionUID
 
Constructor Summary
SRPPrivateKey(java.math.BigInteger n, java.math.BigInteger g, java.math.BigInteger x)
           
 
Method Summary
 java.math.BigInteger getBase()
          Returns the key as a java.math.BigInteger.
 byte[] getBaseBytes()
          Returns the base part of the key; ie.
 
Methods inherited from class cryptix.sasl.srp.SRPKey
getAlgorithm, getEncoded, getFormat, getGenerator, getGeneratorBytes, getModulus, getModulusBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat
 

Field Detail

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.

Constructor Detail

SRPPrivateKey

public SRPPrivateKey(java.math.BigInteger n,
                     java.math.BigInteger g,
                     java.math.BigInteger x)
Method Detail

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.