@Override
    public AuthenticationPolicy toAuthenticationPolicy(final RegisteredService registeredService) {
        val handlers = registeredService.getAuthenticationPolicy().getRequiredAuthenticationHandlers();
        return new RequiredAuthenticationHandlerAuthenticationPolicy(handlers, this.tryAll);
    }
This is {@link AllowedAuthenticationHandlersRegisteredServiceAuthenticationPolicyCriteria}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/services/AllowedAuthenticationHandlersRegisteredServiceAuthenticationPolicyCriteria.java