| java.lang.Object org.jboss.security.srp.SRPParameters
SRPParameters | public class SRPParameters implements Cloneable,Serializable(Code) | | 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.
author: Scott.Stark@jboss.org version: $Revision: 57210 $ |
Field Summary | |
final public byte[] | N | final public String | cipherAlgorithm The algorithm to use for any encryption of data. | public byte[] | cipherIV | final public byte[] | g | final public String | hashAlgorithm The algorithm to hash the session key to produce K. | final public byte[] | s |
Constructor Summary | |
public | SRPParameters(byte[] N, byte[] g, byte[] s) | public | SRPParameters(byte[] N, byte[] g, byte[] s, String hashAlgorithm) | public | SRPParameters(byte[] N, byte[] g, byte[] s, String hashAlgorithm, String cipherAlgorithm) | public | SRPParameters(byte[] N, byte[] g, byte[] s, String hashAlgorithm, String cipherAlgorithm, byte[] cipherIV) |
N | final public byte[] N(Code) | | The algorithm safe-prime modulus
|
cipherAlgorithm | final public String cipherAlgorithm(Code) | | The algorithm to use for any encryption of data.
|
cipherIV | public byte[] cipherIV(Code) | | The cipher intialization vector bytes
|
g | final public byte[] g(Code) | | The algorithm primitive generator
|
hashAlgorithm | final public String hashAlgorithm(Code) | | 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().
|
s | final public byte[] s(Code) | | The random password salt originally used to verify the password
|
SRPParameters | public SRPParameters(byte[] N, byte[] g, byte[] s)(Code) | | Creates a new instance of SRPParameters
|
SRPParameters | public SRPParameters(byte[] N, byte[] g, byte[] s, String hashAlgorithm)(Code) | | |
SRPParameters | public SRPParameters(byte[] N, byte[] g, byte[] s, String hashAlgorithm, String cipherAlgorithm)(Code) | | |
SRPParameters | public SRPParameters(byte[] N, byte[] g, byte[] s, String hashAlgorithm, String cipherAlgorithm, byte[] cipherIV)(Code) | | |
hashCode | public int hashCode()(Code) | | |
|
|