public class OrderedMultiFactorMethodRankingStrategy extends Object implements RequestedAuthenticationMethodRankingStrategy
Ordered abstraction
of MultiFactorAuthenticationRequestContext.| Constructor and Description |
|---|
OrderedMultiFactorMethodRankingStrategy(AuthenticationMethodConfigurationProvider authenticationMethodConfiguration)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
anyPreviouslyAchievedAuthenticationMethodsStrongerThanRequestedOne(Set<String> previouslyAchievedAuthenticationMethods,
String requestedAuthenticationMethod)
Determine if provided list of previously achieved authentication methods contains any one method stronger than
currently requested one.
|
MultiFactorAuthenticationSupportingWebApplicationService |
computeHighestRankingAuthenticationMethod(MultiFactorAuthenticationTransactionContext mfaTransaction)
Calculates the highest ranking possible authentication method from the list of the requested ones.
|
protected List<MultiFactorAuthenticationRequestContext> |
sortRequests(List<MultiFactorAuthenticationRequestContext> sortedRequests)
Sort the list of requests.
|
public OrderedMultiFactorMethodRankingStrategy(AuthenticationMethodConfigurationProvider authenticationMethodConfiguration)
authenticationMethodConfiguration - the authentication method loaderpublic MultiFactorAuthenticationSupportingWebApplicationService computeHighestRankingAuthenticationMethod(@NotNull MultiFactorAuthenticationTransactionContext mfaTransaction)
RequestedAuthenticationMethodRankingStrategycomputeHighestRankingAuthenticationMethod in interface RequestedAuthenticationMethodRankingStrategymfaTransaction - mfa transaction encapsulating possible requested authentication methodsprotected List<MultiFactorAuthenticationRequestContext> sortRequests(List<MultiFactorAuthenticationRequestContext> sortedRequests)
sortedRequests - the sorted requestspublic boolean anyPreviouslyAchievedAuthenticationMethodsStrongerThanRequestedOne(Set<String> previouslyAchievedAuthenticationMethods, String requestedAuthenticationMethod)
RequestedAuthenticationMethodRankingStrategyanyPreviouslyAchievedAuthenticationMethodsStrongerThanRequestedOne in interface RequestedAuthenticationMethodRankingStrategypreviouslyAchievedAuthenticationMethods - set of previously achieved authentication methodsrequestedAuthenticationMethod - requestedAuthenticationMethodCopyright © 2013-2015 Unicon Inc.. All Rights Reserved.