Save This Page
Home » crypto-143 » org.bouncycastle.crypto.agreement.srp » [javadoc | source]
org.bouncycastle.crypto.agreement.srp
public class: SRP6Server [javadoc | source]
java.lang.Object
   org.bouncycastle.crypto.agreement.srp.SRP6Server
Implements the server side SRP-6a protocol. Note that this class is stateful, and therefore NOT threadsafe. This implementation of SRP is based on the optimized message sequence put forth by Thomas Wu in the paper "SRP-6: Improvements and Refinements to the Secure Remote Password Protocol, 2002"
Field Summary
protected  BigInteger N     
protected  BigInteger g     
protected  BigInteger v     
protected  SecureRandom random     
protected  Digest digest     
protected  BigInteger A     
protected  BigInteger b     
protected  BigInteger B     
protected  BigInteger u     
protected  BigInteger S     
Constructor:
 public SRP6Server() 
Method from org.bouncycastle.crypto.agreement.srp.SRP6Server Summary:
calculateSecret,   generateServerCredentials,   init,   selectPrivateValue
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.bouncycastle.crypto.agreement.srp.SRP6Server Detail:
 public BigInteger calculateSecret(BigInteger clientA) throws CryptoException 
    Processes the client's credentials. If valid the shared secret is generated and returned.
 public BigInteger generateServerCredentials() 
    Generates the server's credentials that are to be sent to the client.
 public  void init(BigInteger N,
    BigInteger g,
    BigInteger v,
    Digest digest,
    SecureRandom random) 
    Initialises the server to accept a new client authentication attempt
 protected BigInteger selectPrivateValue()