Class ChainingRegisteredServiceAccessStrategy

  • All Implemented Interfaces:
    java.io.Serializable, org.apereo.cas.services.RegisteredServiceAccessStrategy, org.springframework.core.Ordered

    public class ChainingRegisteredServiceAccessStrategy
    extends java.lang.Object
    implements org.apereo.cas.services.RegisteredServiceAccessStrategy
    Since:
    6.5.0
    See Also:
    Serialized Form
    • Constructor Detail

      • ChainingRegisteredServiceAccessStrategy

        public ChainingRegisteredServiceAccessStrategy()
    • Method Detail

      • addStrategy

        public void addStrategy​(@NonNull
                                @NonNull org.apereo.cas.services.RegisteredServiceAccessStrategy policy)
        Add policy/strategy.
        Parameters:
        policy - the provider
      • addStrategies

        public void addStrategies​(org.apereo.cas.services.RegisteredServiceAccessStrategy... policies)
        Add strategies.
        Parameters:
        policies - the policies
      • isServiceAccessAllowed

        public boolean isServiceAccessAllowed()
        Specified by:
        isServiceAccessAllowed in interface org.apereo.cas.services.RegisteredServiceAccessStrategy
      • setServiceAccessAllowed

        public void setServiceAccessAllowed​(boolean enabled)
        Specified by:
        setServiceAccessAllowed in interface org.apereo.cas.services.RegisteredServiceAccessStrategy
      • isServiceAccessAllowedForSso

        public boolean isServiceAccessAllowedForSso()
        Specified by:
        isServiceAccessAllowedForSso in interface org.apereo.cas.services.RegisteredServiceAccessStrategy
      • doPrincipalAttributesAllowServiceAccess

        public boolean doPrincipalAttributesAllowServiceAccess​(java.lang.String principal,
                                                               java.util.Map<java.lang.String,​java.lang.Object> attributes)
        Specified by:
        doPrincipalAttributesAllowServiceAccess in interface org.apereo.cas.services.RegisteredServiceAccessStrategy
      • getDelegatedAuthenticationPolicy

        public org.apereo.cas.services.RegisteredServiceDelegatedAuthenticationPolicy getDelegatedAuthenticationPolicy()
        Specified by:
        getDelegatedAuthenticationPolicy in interface org.apereo.cas.services.RegisteredServiceAccessStrategy
      • getRequiredAttributes

        public java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> getRequiredAttributes()
        Specified by:
        getRequiredAttributes in interface org.apereo.cas.services.RegisteredServiceAccessStrategy