Top Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.bc

pack-priv final Class BcTlsSRP6Server

extends Object
implements TlsSRP6Server
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.crypto.TlsSRP6Server
Imports
java.io.IOException, java.math.BigInteger, org.bouncycastle.crypto.CryptoException, org.bouncycastle.crypto.agreement.srp.SRP6Server, org.bouncycastle.tls.AlertDescription, .TlsFatalAlert, org.bouncycastle.tls.crypto.TlsSRP6Server

Field Summary

Modifier and TypeField and Description
private final SRP6Server

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public BigInteger
calculateSecret(BigInteger
The client's credentials
clientA
)

Implements org.bouncycastle.tls.crypto.TlsSRP6Server.calculateSecret.

Processes the client's credentials.

public BigInteger
generateServerCredentials()

Implements org.bouncycastle.tls.crypto.TlsSRP6Server.generateServerCredentials.

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

srp6Serverback to summary
private final SRP6Server srp6Server

Constructor Detail

BcTlsSRP6Serverback to summary
pack-priv BcTlsSRP6Server(SRP6Server srp6Server)

Method Detail

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

Implements org.bouncycastle.tls.crypto.TlsSRP6Server.calculateSecret.

Doc from org.bouncycastle.tls.crypto.TlsSRP6Server.calculateSecret.

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()

Implements org.bouncycastle.tls.crypto.TlsSRP6Server.generateServerCredentials.

Doc from org.bouncycastle.tls.crypto.TlsSRP6Server.generateServerCredentials.

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

Returns:BigInteger

The server's public value to the client