public class JaasCredentialsValidator extends java.lang.Object implements CredentialsValidator
Configuration parameters:
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_APPNAME |
| Constructor and Description |
|---|
JaasCredentialsValidator() |
JaasCredentialsValidator(java.lang.String appName)
Create the validator with the given name of JAAS configuration
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(ConfigProperties configProperties)
configure the component
|
boolean |
validateCredentials(AuthenticationInfo authenticationInfo)
Validate user credential.
|
public static final java.lang.String DEFAULT_APPNAME
public JaasCredentialsValidator()
public JaasCredentialsValidator(java.lang.String appName)
appName - = name of JAAS configurationpublic void configure(ConfigProperties configProperties)
Configurableconfigure in interface ConfigurableconfigProperties - = configuration propertiespublic boolean validateCredentials(AuthenticationInfo authenticationInfo) throws java.lang.Exception
CredentialsValidatorvalidateCredentials in interface CredentialsValidatorauthenticationInfo - = authentication infojava.lang.Exception - any exception occurred (invalid credentials or internal
issue) prevent user login