Interface IAuthenticationSuite

All Known Implementing Classes:
Blake3X509AuthenticationSuite

public interface IAuthenticationSuite
Suite for authenticating messages.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates an authentication token for a message based on an abstract implementation-dependent "key".
    void
    finalizePake(Security agent, jadex.core.ComponentIdentifier remoteid, byte[] round2data)
    Finalizes the password-authenticated key exchange.
    int
    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.
    boolean
    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

      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(Security agent, jadex.core.ComponentIdentifier remoteid)
      Gets the first round of the password-authenticated key-exchange.
      Returns:
      First round payload.
    • getPakeRound2

      byte[] getPakeRound2(Security agent, jadex.core.ComponentIdentifier remoteid, byte[] round1data)
      Gets the second round of the password-authenticated key-exchange.
      Returns:
      Second round payload.
    • finalizePake

      void finalizePake(Security agent, jadex.core.ComponentIdentifier remoteid, byte[] round2data)
      Finalizes the password-authenticated key exchange.