Interface IAuthCredentialValidatorSPI
-
@IsSPIInterface public interface IAuthCredentialValidatorSPIThis SPI needs to be implemented by all implementing application to validate the specified credentials.
Note: each class implementing this file needs to register itself in a file called/META-INF/services/com.helger.photon.basic.auth.credentials.IAuthCredentialValidatorSPI- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleansupportsCredentials(IAuthCredentials aCredentials)Check if this implementation supports the passed credentials.ICredentialValidationResultvalidateCredentials(IAuthCredentials aCredentials)Validate the specified credentials.
-
-
-
Method Detail
-
supportsCredentials
boolean supportsCredentials(@Nonnull IAuthCredentials aCredentials)
Check if this implementation supports the passed credentials.- Parameters:
aCredentials- The credentials to be validated. May not benull.- Returns:
trueif this implementation supports the specified credentials.
-
validateCredentials
@Nonnull ICredentialValidationResult validateCredentials(@Nonnull IAuthCredentials aCredentials)
Validate the specified credentials. This method is only called if a previous call tosupportsCredentials(IAuthCredentials)returnedtrue.- Parameters:
aCredentials- The credentials to be validated. Nevernull.- Returns:
- The credential validation result. May not be
null.
-
-