Interface Credentials

All Superinterfaces:
Validated
All Known Subinterfaces:
RoleUserCredentials
All Known Implementing Classes:
RoleUser

public interface Credentials extends Validated
This interface defines the methods that classes with Credentials functionalities have to implement.

Credentials contain the information that is required to verify if a user is valid and known to the system. They are the basic building blocks of the authentication mechanism.

Credentials can contain any data, they just have to be able to validate the contents of the provided data. For example enforce limits on the length of passwords, verify the accepted characters in logins, check the numeric requirements of identifiers, and so on.

This is different from the validation of the credentials themselves (i.e. checking if they're known by the system and can be authenticated) since that is performed by a CredentialsManager.

Since:
1.0
See Also: