For the latest news and information visit
The GNU Crypto project

gnu.crypto.sasl.srp
Class SRPClient

java.lang.Object
  extended by gnu.crypto.sasl.ClientMechanism
      extended by gnu.crypto.sasl.srp.SRPClient
All Implemented Interfaces:
SaslClient

public class SRPClient
extends ClientMechanism
implements SaslClient

The SASL-SRP client-side mechanism.

Version:
$Revision: 1.9 $

Field Summary
(package private)  BigInteger A
           
(package private)  BigInteger B
           
(package private)  BigInteger g
           
(package private)  BigInteger N
           
 
Fields inherited from class gnu.crypto.sasl.ClientMechanism
authorizationID, channelBinding, complete, handler, mechanism, properties, protocol, serverName, state
 
Constructor Summary
SRPClient()
           
 
Method Summary
protected  byte[] engineUnwrap(byte[] incoming, int offset, int len)
           
protected  byte[] engineWrap(byte[] outgoing, int offset, int len)
           
 byte[] evaluateChallenge(byte[] challenge)
           
protected  String getNegotiatedQOP()
           
protected  String getNegotiatedRawSendSize()
           
protected  String getNegotiatedStrength()
           
protected  String getReuse()
           
 boolean hasInitialResponse()
           
protected  void initMechanism()
           
protected  void resetMechanism()
           
 
Methods inherited from class gnu.crypto.sasl.ClientMechanism
dispose, getAuthorizationID, getMechanismName, getNegotiatedMaxBuffer, getNegotiatedPolicyForwardSecrecy, getNegotiatedPolicyNoActive, getNegotiatedPolicyNoAnonymous, getNegotiatedPolicyNoDictionary, getNegotiatedPolicyNoPlainText, getNegotiatedPolicyPassCredentials, getNegotiatedProperty, getNegotiatedServerAuth, init, isComplete, reset, unwrap, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.security.sasl.SaslClient
dispose, getMechanismName, getNegotiatedProperty, isComplete, unwrap, wrap
 

Field Detail

N

BigInteger N

g

BigInteger g

A

BigInteger A

B

BigInteger B
Constructor Detail

SRPClient

public SRPClient()
Method Detail

initMechanism

protected void initMechanism()
                      throws SaslException
Specified by:
initMechanism in class ClientMechanism
Throws:
SaslException

resetMechanism

protected void resetMechanism()
                       throws SaslException
Specified by:
resetMechanism in class ClientMechanism
Throws:
SaslException

hasInitialResponse

public boolean hasInitialResponse()
Specified by:
hasInitialResponse in interface SaslClient
Specified by:
hasInitialResponse in class ClientMechanism

evaluateChallenge

public byte[] evaluateChallenge(byte[] challenge)
                         throws SaslException
Specified by:
evaluateChallenge in interface SaslClient
Specified by:
evaluateChallenge in class ClientMechanism
Throws:
SaslException

engineUnwrap

protected byte[] engineUnwrap(byte[] incoming,
                              int offset,
                              int len)
                       throws SaslException
Overrides:
engineUnwrap in class ClientMechanism
Throws:
SaslException

engineWrap

protected byte[] engineWrap(byte[] outgoing,
                            int offset,
                            int len)
                     throws SaslException
Overrides:
engineWrap in class ClientMechanism
Throws:
SaslException

getNegotiatedQOP

protected String getNegotiatedQOP()
Overrides:
getNegotiatedQOP in class ClientMechanism

getNegotiatedStrength

protected String getNegotiatedStrength()
Overrides:
getNegotiatedStrength in class ClientMechanism

getNegotiatedRawSendSize

protected String getNegotiatedRawSendSize()
Overrides:
getNegotiatedRawSendSize in class ClientMechanism

getReuse

protected String getReuse()
Overrides:
getReuse in class ClientMechanism

For the latest news and information visit
The GNU Crypto project

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.