Interface Credentials

All Known Subinterfaces:
AnonymousCredentials, LoginCredentials, UsernamePasswordCredentials
All Known Implementing Classes:
ActivateTwoFactorLoginCredentials, InvokerUsernamePasswordCredentials, OpenIdCredentials, SessionCredentials, SimpleUsernamePasswordCredentials, TwoFactorLoginCredentials, UserCredentialsChange

public interface Credentials
Abstraction for credentials supplied by a client. Credentials are any piece of information that can be used to authenticate a subject. In most cases this is a username-password pair. But it may be a username only, a certificate, finger print etc. whatever the authentication strategy may consider as credentials. This marker interface is used in favor of Object class. When implementing credentials, please provide a `toString()` method for logging purposes. But make sure you do not add confidential information (like passwords).