C - the type of credentials the authenticator can authenticateP - the type of principals the authenticator returnspublic interface Authenticator<C extends Credential,P extends Principal>
Principal.| Modifier and Type | Method and Description |
|---|---|
P |
authenticate(C credential)
Given , return a
Principal. |
P authenticate(C credential)
Principal.
If the credential are valid returns a Principal.
If the credential are invalid, throws AuthenticationException.credential - subject credentialAuthenticationException - if the credential cannot be validated