Package org.apereo.cas.services
Class ChainingRegisteredServiceAccessStrategy
- java.lang.Object
-
- org.apereo.cas.services.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 Summary
Constructors Constructor Description ChainingRegisteredServiceAccessStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStrategies(org.apereo.cas.services.RegisteredServiceAccessStrategy... policies)
Add strategies.void
addStrategy(@NonNull org.apereo.cas.services.RegisteredServiceAccessStrategy policy)
Add policy/strategy.boolean
doPrincipalAttributesAllowServiceAccess(java.lang.String principal, java.util.Map<java.lang.String,java.lang.Object> attributes)
org.apereo.cas.services.RegisteredServiceDelegatedAuthenticationPolicy
getDelegatedAuthenticationPolicy()
java.util.Map<java.lang.String,java.util.Set<java.lang.String>>
getRequiredAttributes()
boolean
isServiceAccessAllowed()
boolean
isServiceAccessAllowedForSso()
void
setServiceAccessAllowed(boolean enabled)
-
-
-
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 interfaceorg.apereo.cas.services.RegisteredServiceAccessStrategy
-
setServiceAccessAllowed
public void setServiceAccessAllowed(boolean enabled)
- Specified by:
setServiceAccessAllowed
in interfaceorg.apereo.cas.services.RegisteredServiceAccessStrategy
-
isServiceAccessAllowedForSso
public boolean isServiceAccessAllowedForSso()
- Specified by:
isServiceAccessAllowedForSso
in interfaceorg.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 interfaceorg.apereo.cas.services.RegisteredServiceAccessStrategy
-
getDelegatedAuthenticationPolicy
public org.apereo.cas.services.RegisteredServiceDelegatedAuthenticationPolicy getDelegatedAuthenticationPolicy()
- Specified by:
getDelegatedAuthenticationPolicy
in interfaceorg.apereo.cas.services.RegisteredServiceAccessStrategy
-
getRequiredAttributes
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getRequiredAttributes()
- Specified by:
getRequiredAttributes
in interfaceorg.apereo.cas.services.RegisteredServiceAccessStrategy
-
-