Interface Credentials

All Known Subinterfaces:
LoginCredentials, PrincipalCredentials
All Known Implementing Classes:
DigestCredentials, TokenCredentials, User

public interface Credentials

Credentials represents the data required by an entity to get access to protected services or resources.

Credentials must be provided to an Authenticator by an entity that wants to access protected services or resources. Authenticators can then authenticate these credentials either by matching them with credentials stored in a secured repository (see UserRepository), by using cryptographic methods or by using other authentication services (e.g. LDAP, Active Directory...).

Since:
1.5
Author:
Jeremy Kuhn
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Determines whether a credentials is locked.
  • Method Details

    • isLocked

      default boolean isLocked()

      Determines whether a credentials is locked.

      Locked credentials should be considered invalid by authenticators when matching provided credentials with stored entity credentials.

      Returns:
      true if credentials are locked, false otherwise