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

Quick Search    Search Deep

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

java.lang.Object
  extended bycryptix.sasl.srp.SRPKey
      extended bycryptix.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.
 
Fields inherited from class cryptix.sasl.srp.SRPKey
g, gBytes, n, nBytes
 
Fields inherited from interface java.security.PublicKey
serialVersionUID
 
Constructor Summary
SRPPublicKey(java.math.BigInteger n, java.math.BigInteger g, java.math.BigInteger X)
           
 
Method Summary
 java.math.BigInteger getExponent()
          Returns the (public) exponent as a java.math.BigInteger.
 byte[] getExponentBytes()
          Returns the public exponent 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 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.

Constructor Detail

SRPPublicKey

public SRPPublicKey(java.math.BigInteger n,
                    java.math.BigInteger g,
                    java.math.BigInteger X)
Method Detail

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.