Package org.bouncycastle.tls.crypto
Interface TlsSRP6Client
public interface TlsSRP6Client
Basic interface for an SRP-6 client implementation.
-
Method Summary
Modifier and TypeMethodDescriptioncalculateSecret
(BigInteger serverB) Generates the secret S given the server's credentialsgenerateClientCredentials
(byte[] salt, byte[] identity, byte[] password) Generates client's credentials given the client's salt, identity and password
-
Method Details
-
calculateSecret
Generates the secret S given the server's credentials- Parameters:
serverB
- The server's credentials- Returns:
- Client's verification message for the server
- Throws:
IOException
- If server's credentials are invalid
-
generateClientCredentials
Generates client's credentials given the client's salt, identity and password- Parameters:
salt
- The salt used in the client's verifier.identity
- The user's identity (eg. username)password
- The user's password- Returns:
- Client's public value to send to server
-