org.jboss.security.srp
Class SRPParameters

java.lang.Object
  extended by org.jboss.security.srp.SRPParameters
All Implemented Interfaces:
Serializable, Cloneable

public class SRPParameters
extends Object
implements Cloneable, Serializable

The RFC2945 algorithm session parameters that the client and server agree to use. In addition to the base RFC2945 parameters, one can choose an alternate hash algorithm for the private session key.

Version:
$Revision: 57210 $
Author:
Scott.Stark@jboss.org
See Also:
Serialized Form

Field Summary
 String cipherAlgorithm
          The algorithm to use for any encryption of data.
 byte[] cipherIV
          The cipher intialization vector bytes
 byte[] g
          The algorithm primitive generator
 String hashAlgorithm
          The algorithm to hash the session key to produce K.
 byte[] N
          The algorithm safe-prime modulus
 byte[] s
          The random password salt originally used to verify the password
 
Constructor Summary
SRPParameters(byte[] N, byte[] g, byte[] s)
          Creates a new instance of SRPParameters
SRPParameters(byte[] N, byte[] g, byte[] s, String hashAlgorithm)
           
SRPParameters(byte[] N, byte[] g, byte[] s, String hashAlgorithm, String cipherAlgorithm)
           
SRPParameters(byte[] N, byte[] g, byte[] s, String hashAlgorithm, String cipherAlgorithm, byte[] cipherIV)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

N

public final byte[] N
The algorithm safe-prime modulus


g

public final byte[] g
The algorithm primitive generator


s

public final byte[] s
The random password salt originally used to verify the password


hashAlgorithm

public final String hashAlgorithm
The algorithm to hash the session key to produce K. To be consistent with the RFC2945 description this must be SHA_Interleave as implemented by the JBossSX security provider. For compatibility with earlier JBossSX SRP releases the algorithm must be SHA_ReverseInterleave. This name is passed to java.security.MessageDigest.getInstance().


cipherAlgorithm

public final String cipherAlgorithm
The algorithm to use for any encryption of data.


cipherIV

public byte[] cipherIV
The cipher intialization vector bytes

Constructor Detail

SRPParameters

public SRPParameters(byte[] N,
                     byte[] g,
                     byte[] s)
Creates a new instance of SRPParameters


SRPParameters

public SRPParameters(byte[] N,
                     byte[] g,
                     byte[] s,
                     String hashAlgorithm)

SRPParameters

public SRPParameters(byte[] N,
                     byte[] g,
                     byte[] s,
                     String hashAlgorithm,
                     String cipherAlgorithm)

SRPParameters

public SRPParameters(byte[] N,
                     byte[] g,
                     byte[] s,
                     String hashAlgorithm,
                     String cipherAlgorithm,
                     byte[] cipherIV)
Method Detail

clone

public Object clone()
Overrides:
clone in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.