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

Quick Search    Search Deep

gnu.javax.crypto.key.srp6
Class SRP6Host  view SRP6Host download SRP6Host.java

java.lang.Object
  extended bygnu.javax.crypto.key.BaseKeyAgreementParty
      extended bygnu.javax.crypto.key.srp6.SRP6KeyAgreement
          extended bygnu.javax.crypto.key.srp6.SRP6Host
All Implemented Interfaces:
gnu.javax.crypto.key.IKeyAgreementParty

public class SRP6Host
extends SRP6KeyAgreement

The implementation of the Host in the SRP-6 key agreement protocol.

Reference:

  1. SRP Protocol Design
    Thomas J. Wu.


Field Summary
private  java.security.KeyPair hostKeyPair
          The user's ephemeral key pair.
private  gnu.javax.crypto.sasl.srp.SRPAuthInfoProvider passwordDB
          The SRP password database.
 
Fields inherited from class gnu.javax.crypto.key.srp6.SRP6KeyAgreement
g, GENERATOR, HASH_FUNCTION, HOST_PASSWORD_DB, K, N, SHARED_MODULUS, SOURCE_OF_RANDOMNESS, srp, THREE, USER_IDENTITY, USER_PASSWORD
 
Fields inherited from class gnu.javax.crypto.key.BaseKeyAgreementParty
complete, initialised, irnd, name, rnd, step, TWO
 
Constructor Summary
SRP6Host()
           
 
Method Summary
private  gnu.javax.crypto.key.OutgoingMessage computeSharedSecret(gnu.javax.crypto.key.IncomingMessage in)
           
protected  void engineInit(java.util.Map attributes)
           
protected  gnu.javax.crypto.key.OutgoingMessage engineProcessMessage(gnu.javax.crypto.key.IncomingMessage in)
           
protected  void engineReset()
           
 
Methods inherited from class gnu.javax.crypto.key.srp6.SRP6KeyAgreement
engineSharedSecret, uValue
 
Methods inherited from class gnu.javax.crypto.key.BaseKeyAgreementParty
getSharedSecret, init, isComplete, name, nextRandomBytes, processMessage, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hostKeyPair

private java.security.KeyPair hostKeyPair
The user's ephemeral key pair.


passwordDB

private gnu.javax.crypto.sasl.srp.SRPAuthInfoProvider passwordDB
The SRP password database.

Constructor Detail

SRP6Host

public SRP6Host()
Method Detail

engineInit

protected void engineInit(java.util.Map attributes)
                   throws gnu.javax.crypto.key.KeyAgreementException

engineProcessMessage

protected gnu.javax.crypto.key.OutgoingMessage engineProcessMessage(gnu.javax.crypto.key.IncomingMessage in)
                                                             throws gnu.javax.crypto.key.KeyAgreementException

engineReset

protected void engineReset()
Overrides:
engineReset in class SRP6KeyAgreement

computeSharedSecret

private gnu.javax.crypto.key.OutgoingMessage computeSharedSecret(gnu.javax.crypto.key.IncomingMessage in)
                                                          throws gnu.javax.crypto.key.KeyAgreementException