Top Description Methods
org.bouncycastle.tls.crypto

public Interface TlsSRP6Server

Known Direct Implementers
org.bouncycastle.tls.crypto.impl.bc.BcTlsSRP6Server
Imports
java.io.IOException, java.math.BigInteger

Basic interface for an SRP-6 server implementation.

Method Summary

Modifier and TypeMethod and Description
public BigInteger

Returns:

A shared secret BigInteger
calculateSecret
(BigInteger
The client's credentials
clientA
)

Processes the client's credentials.

public BigInteger

Returns:

The server's public value to the client
generateServerCredentials
()

Generates the server's credentials that are to be sent to the client.

Method Detail

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

Processes the client's credentials. If valid the shared secret is generated and returned.

Parameters
clientA:BigInteger

The client's credentials

Returns:BigInteger

A shared secret BigInteger

Exceptions
IOException:
If client's credentials are invalid
generateServerCredentialsback to summary
public BigInteger generateServerCredentials()

Generates the server's credentials that are to be sent to the client.

Returns:BigInteger

The server's public value to the client