Interface AuthenticationToken

All Known Implementing Classes:
UsernameAuthenticationToken, UsernamePasswordAuthenticationToken

public interface AuthenticationToken
Authentification token.
Author:
npiedeloup
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    match(AuthenticationToken trustedAuthenticationToken)
    Checks if this User-submitted AuthenticationToken matches the realm trustedAuthenticationToken.
  • Method Details

    • getPrincipal

      String getPrincipal()
      Returns:
      the username submitted during an authentication attempt.
    • match

      boolean match(AuthenticationToken trustedAuthenticationToken)
      Checks if this User-submitted AuthenticationToken matches the realm trustedAuthenticationToken.
      Parameters:
      trustedAuthenticationToken - the realm trustedAuthenticationToken
      Returns:
      if this token matches