Package org.bouncycastle.tls.crypto
Interface TlsSRP6Server
public interface TlsSRP6Server
Basic interface for an SRP-6 server implementation.
-
Method Summary
Modifier and TypeMethodDescriptioncalculateSecret
(BigInteger clientA) Processes the client's credentials.Generates the server's credentials that are to be sent to the client.
-
Method Details
-
generateServerCredentials
BigInteger generateServerCredentials()Generates the server's credentials that are to be sent to the client.- Returns:
- The server's public value to the client
-
calculateSecret
Processes the client's credentials. If valid the shared secret is generated and returned.- Parameters:
clientA
- The client's credentials- Returns:
- A shared secret BigInteger
- Throws:
IOException
- If client's credentials are invalid
-