public final class JsonBackedAuthenticationMethodConfigurationProvider extends Object implements AuthenticationMethodConfigurationProvider
RequestedAuthenticationMethodRankingStrategy.
Example configuration:
[ {
"rank" : 1,
"name" : "duo_two_factor"
}, {
"rank" : 2,
"name" : "strong_two_factor"
}, {
"rank" : 3,
"name" : "sample_two_factor"
} ]
| Constructor and Description |
|---|
JsonBackedAuthenticationMethodConfigurationProvider()
Instantiates a new Authentication method loader.
|
JsonBackedAuthenticationMethodConfigurationProvider(org.springframework.core.io.Resource configuration)
Instantiates a new Authentication method loader.
|
JsonBackedAuthenticationMethodConfigurationProvider(Set<AuthenticationMethod> authnMethods)
Instantiates a new Authentication method loader.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAuthenticationMethod(String name)
Contains authentication method.
|
AuthenticationMethod |
getAuthenticationMethod(String name)
Gets authentication method.
|
public JsonBackedAuthenticationMethodConfigurationProvider(org.springframework.core.io.Resource configuration)
throws IOException
configuration - the configurationIOException - the iO exceptionpublic JsonBackedAuthenticationMethodConfigurationProvider(Set<AuthenticationMethod> authnMethods)
authnMethods - the authn methodspublic JsonBackedAuthenticationMethodConfigurationProvider()
public boolean containsAuthenticationMethod(String name)
containsAuthenticationMethod in interface AuthenticationMethodConfigurationProvidername - the namepublic AuthenticationMethod getAuthenticationMethod(String name)
getAuthenticationMethod in interface AuthenticationMethodConfigurationProvidername - the nameCopyright © 2013-2015 Unicon Inc.. All Rights Reserved.