Interface IAuthenticationSuite

    • 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.