Interface IAuthenticationSuite
-
- All Known Implementing Classes:
Blake2bX509AuthenticationSuite
public interface IAuthenticationSuite
Suite for authenticating messages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthToken
createAuthenticationToken(byte[] msg, AbstractAuthenticationSecret key)
Creates an authentication token for a message based on an abstract implementation-dependent "key".void
finalizePake(SecurityAgent agent, IComponentIdentifier remoteid, byte[] round2data)
Finalizes the password-authenticated key exchange.int
getId()
Gets the authentication suite ID.byte[]
getPakeRound1(SecurityAgent agent, IComponentIdentifier remoteid)
Gets the first round of the password-authenticated key-exchange.byte[]
getPakeRound2(SecurityAgent agent, IComponentIdentifier remoteid, byte[] round1data)
Gets the second round of the password-authenticated key-exchange.boolean
verifyAuthenticationToken(byte[] msg, AbstractAuthenticationSecret key, AuthToken authtoken)
Creates an authentication token for a message based on an abstract implementation-dependent "key".
-
-
-
Method Detail
-
getId
int getId()
Gets the authentication suite ID.- Returns:
- The authentication suite ID.
-
createAuthenticationToken
AuthToken createAuthenticationToken(byte[] msg, AbstractAuthenticationSecret key)
Creates an authentication token for a message based on an abstract implementation-dependent "key".- Parameters:
msg
- The message being authenticated.key
- The key used for authentication.- Returns:
- Authentication token.
-
verifyAuthenticationToken
boolean verifyAuthenticationToken(byte[] msg, AbstractAuthenticationSecret key, AuthToken authtoken)
Creates an authentication token for a message based on an abstract implementation-dependent "key".- Parameters:
msg
- The message being authenticated.key
- The key used for authentication.authtoken
- Authentication token.- Returns:
- True if authenticated, false otherwise.
-
getPakeRound1
byte[] getPakeRound1(SecurityAgent agent, IComponentIdentifier remoteid)
Gets the first round of the password-authenticated key-exchange.- Returns:
- First round payload.
-
getPakeRound2
byte[] getPakeRound2(SecurityAgent agent, IComponentIdentifier remoteid, byte[] round1data)
Gets the second round of the password-authenticated key-exchange.- Returns:
- Second round payload.
-
finalizePake
void finalizePake(SecurityAgent agent, IComponentIdentifier remoteid, byte[] round2data)
Finalizes the password-authenticated key exchange.
-
-