| Modifier and Type | Field and Description |
|---|---|
| protected BigInteger | |
| protected BigInteger | |
| protected BigInteger | |
| protected TlsHash | |
| protected BigInteger | |
| protected BigInteger | |
| protected BigInteger | |
| protected BigInteger | |
| protected BigInteger | |
| protected SecureRandom | |
| protected BigInteger | |
| protected BigInteger | |
| protected BigInteger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public BigInteger | Returns: M1: the client side generated evidence messageComputes the client evidence message M1 using the previously received values. |
| private BigInteger | |
| public BigInteger | Returns: Client's verification message for the serverThe server's credentials serverB)Generates the secret S given the server's credentials |
| public BigInteger | Returns: Key: the mutually authenticated symmetric session keyComputes the final session key as a result of the SRP successful mutual authentication To be called after verifying the server evidence message M2. |
| public BigInteger | Returns: Client's public value to send to serverThe 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 |
| public void | init(BigInteger
The safe prime associated with the client's verifier N, BigInteger The group parameter associated with the client's verifier g, TlsHash The digest algorithm associated with the client's verifier digest, SecureRandom For key generation random)Initialises the client to begin new authentication attempt |
| public void | |
| protected BigInteger | |
| public boolean | Returns: A boolean indicating if the server message M2 was the expected one.the server side generated evidence message serverM2)Authenticates the server evidence message M2 received and saves it only if correct. |
| a | back to summary |
|---|---|
| protected BigInteger a | |
| A | back to summary |
|---|---|
| protected BigInteger A | |
| B | back to summary |
|---|---|
| protected BigInteger B | |
| digest | back to summary |
|---|---|
| protected TlsHash digest | |
| g | back to summary |
|---|---|
| protected BigInteger g | |
| Key | back to summary |
|---|---|
| protected BigInteger Key | |
| M1 | back to summary |
|---|---|
| protected BigInteger M1 | |
| M2 | back to summary |
|---|---|
| protected BigInteger M2 | |
| N | back to summary |
|---|---|
| protected BigInteger N | |
| random | back to summary |
|---|---|
| protected SecureRandom random | |
| S | back to summary |
|---|---|
| protected BigInteger S | |
| u | back to summary |
|---|---|
| protected BigInteger u | |
| x | back to summary |
|---|---|
| protected BigInteger x | |
| SRP6Client | back to summary |
|---|---|
| public SRP6Client() | |
| calculateClientEvidenceMessage | back to summary |
|---|---|
| public BigInteger calculateClientEvidenceMessage() throws IllegalStateException Computes the client evidence message M1 using the previously received values. To be called after calculating the secret S.
| |
| calculateS | back to summary |
|---|---|
| private BigInteger calculateS() | |
| calculateSecret | back to summary |
|---|---|
| public BigInteger calculateSecret(BigInteger serverB) Generates the secret S given the server's credentials
| |
| calculateSessionKey | back to summary |
|---|---|
| public BigInteger calculateSessionKey() throws IllegalStateException Computes the final session key as a result of the SRP successful mutual authentication To be called after verifying the server evidence message M2.
| |
| generateClientCredentials | back to summary |
|---|---|
| public BigInteger generateClientCredentials(byte[] salt, byte[] identity, byte[] password) Generates client's credentials given the client's salt, identity and password
| |
| init | back to summary |
|---|---|
| public void init(BigInteger N, BigInteger g, TlsHash digest, SecureRandom random) Initialises the client to begin new authentication attempt
| |
| init | back to summary |
|---|---|
| public void init(SRP6Group group, TlsHash digest, SecureRandom random) | |
| selectPrivateValue | back to summary |
|---|---|
| protected BigInteger selectPrivateValue() | |
| verifyServerEvidenceMessage | back to summary |
|---|---|
| public boolean verifyServerEvidenceMessage(BigInteger serverM2) throws IllegalStateException Authenticates the server evidence message M2 received and saves it only if correct.
| |