Interface Authentication

All Known Implementing Classes:
OAuthCredentials, OAuthCredentialsUserNameAndPassword, UsernamePasswordAuthentication

public interface Authentication
Authentication Token
  • Method Summary

    Modifier and Type
    Method
    Description
    The credentials that prove the principal is correct.
    The identity of the principal being authenticated.
  • Method Details

    • getPrincipal

      Object getPrincipal()
      The identity of the principal being authenticated. In the case of an authentication request with username and password, this would be the username. Callers are expected to populate the principal for an authentication request.

      Returns:
      the Principal being authenticated or the authenticated principal after authentication.
    • getCredentials

      Object getCredentials()
      The credentials that prove the principal is correct. This is usually a password, but could be anything relevant to authentication System. Callers are expected to populate the credentials.
      Returns:
      the credentials that prove the identity of the Principal