Class RegisteredServiceAuthenticationHandlerResolver
java.lang.Object
org.apereo.cas.authentication.handler.RegisteredServiceAuthenticationHandlerResolver
- All Implemented Interfaces:
org.apereo.cas.authentication.AuthenticationHandlerResolver,org.springframework.core.Ordered
public class RegisteredServiceAuthenticationHandlerResolver
extends Object
implements org.apereo.cas.authentication.AuthenticationHandlerResolver
This is
RegisteredServiceAuthenticationHandlerResolver
that acts on the criteria presented by a registered service to
detect which handler(s) should be resolved for authentication.- Since:
- 5.0.0
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionRegisteredServiceAuthenticationHandlerResolver(org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.AuthenticationServiceSelectionPlan authenticationServiceSelectionPlan) Creates a newRegisteredServiceAuthenticationHandlerResolverinstance. -
Method Summary
Modifier and TypeMethodDescriptionorg.apereo.cas.authentication.AuthenticationServiceSelectionPlanThe service selection plan.intgetOrder()org.apereo.cas.services.ServicesManagerThe Services manager.Set<org.apereo.cas.authentication.AuthenticationHandler> resolve(Set<org.apereo.cas.authentication.AuthenticationHandler> candidateHandlers, org.apereo.cas.authentication.AuthenticationTransaction transaction) voidsetOrder(int order) booleansupports(Set<org.apereo.cas.authentication.AuthenticationHandler> handlers, org.apereo.cas.authentication.AuthenticationTransaction transaction)
-
Constructor Details
-
RegisteredServiceAuthenticationHandlerResolver
public RegisteredServiceAuthenticationHandlerResolver(org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.AuthenticationServiceSelectionPlan authenticationServiceSelectionPlan) Creates a newRegisteredServiceAuthenticationHandlerResolverinstance.- Parameters:
servicesManager- The Services manager.authenticationServiceSelectionPlan- The service selection plan.
-
-
Method Details
-
resolve
public Set<org.apereo.cas.authentication.AuthenticationHandler> resolve(Set<org.apereo.cas.authentication.AuthenticationHandler> candidateHandlers, org.apereo.cas.authentication.AuthenticationTransaction transaction) throws Throwable - Specified by:
resolvein interfaceorg.apereo.cas.authentication.AuthenticationHandlerResolver- Throws:
Throwable
-
supports
public boolean supports(Set<org.apereo.cas.authentication.AuthenticationHandler> handlers, org.apereo.cas.authentication.AuthenticationTransaction transaction) throws Throwable - Specified by:
supportsin interfaceorg.apereo.cas.authentication.AuthenticationHandlerResolver- Throws:
Throwable
-
getServicesManager
public org.apereo.cas.services.ServicesManager getServicesManager()The Services manager. -
getAuthenticationServiceSelectionPlan
public org.apereo.cas.authentication.AuthenticationServiceSelectionPlan getAuthenticationServiceSelectionPlan()The service selection plan. -
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.apereo.cas.authentication.AuthenticationHandlerResolver- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-