Top Description Methods
org.bouncycastle.tls.crypto

public Interface TlsSRP6Client

Imports
java.io.IOException, java.math.BigInteger

Basic interface for an SRP-6 client implementation.

Method Summary

Modifier and TypeMethod and Description
public BigInteger

Returns:

Client's verification message for the server
calculateSecret
(BigInteger
The server's credentials
serverB
)

Generates the secret S given the server's credentials

public BigInteger

Returns:

Client's public value to send to server
generateClientCredentials
(byte[]
The salt used in the client's verifier.
salt
,
byte[]
The user's identity (eg. username)
identity
,
byte[]
The user's password
password
)

Generates client's credentials given the client's salt, identity and password

Method Detail

calculateSecretback to summary
public BigInteger calculateSecret(BigInteger serverB) throws IOException

Generates the secret S given the server's credentials

Parameters
serverB:BigInteger

The server's credentials

Returns:BigInteger

Client's verification message for the server

Exceptions
IOException:
If server's credentials are invalid
generateClientCredentialsback to summary
public BigInteger generateClientCredentials(byte[] salt, byte[] identity, byte[] password)

Generates client's credentials given the client's salt, identity and password

Parameters
salt:byte[]

The salt used in the client's verifier.

identity:byte[]

The user's identity (eg. username)

password:byte[]

The user's password

Returns:BigInteger

Client's public value to send to server