Interface IAuthenticationSuite
- All Known Implementing Classes:
Blake3X509AuthenticationSuite
public interface IAuthenticationSuite
Suite for authenticating messages.
-
Method Summary
Modifier and TypeMethodDescriptioncreateAuthenticationToken(byte[] msg, AbstractAuthenticationSecret key) Creates an authentication token for a message based on an abstract implementation-dependent "key".voidfinalizePake(Security agent, jadex.core.ComponentIdentifier remoteid, byte[] round2data) Finalizes the password-authenticated key exchange.intgetId()Gets the authentication suite ID.byte[]getPakeRound1(Security agent, jadex.core.ComponentIdentifier remoteid) Gets the first round of the password-authenticated key-exchange.byte[]getPakeRound2(Security agent, jadex.core.ComponentIdentifier remoteid, byte[] round1data) Gets the second round of the password-authenticated key-exchange.booleanverifyAuthenticationToken(byte[] msg, AbstractAuthenticationSecret key, AuthToken authtoken) Creates an authentication token for a message based on an abstract implementation-dependent "key".
-
Method Details
-
getId
int getId()Gets the authentication suite ID.- Returns:
- The authentication suite ID.
-
createAuthenticationToken
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
Gets the first round of the password-authenticated key-exchange.- Returns:
- First round payload.
-
getPakeRound2
Gets the second round of the password-authenticated key-exchange.- Returns:
- Second round payload.
-
finalizePake
Finalizes the password-authenticated key exchange.
-