Package org.apereo.cas.services
Class TimeBasedRegisteredServiceAccessStrategy
java.lang.Object
org.apereo.cas.services.BaseRegisteredServiceAccessStrategy
org.apereo.cas.services.TimeBasedRegisteredServiceAccessStrategy
- All Implemented Interfaces:
Serializable
,org.apereo.cas.services.RegisteredServiceAccessStrategy
,org.springframework.core.Ordered
The
TimeBasedRegisteredServiceAccessStrategy
is responsible for
enforcing CAS authorization strategy based on a configured start/end time.- Since:
- 4.2
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Does ending time allow service access boolean.protected boolean
Does starting time allow service access boolean.boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apereo.cas.services.RegisteredServiceAccessStrategy
doPrincipalAttributesAllowServiceAccess, getDelegatedAuthenticationPolicy, getOrder, getRequiredAttributes, getUnauthorizedRedirectUrl, isServiceAccessAllowedForSso
-
Constructor Details
-
TimeBasedRegisteredServiceAccessStrategy
public TimeBasedRegisteredServiceAccessStrategy()
-
-
Method Details
-
isServiceAccessAllowed
public boolean isServiceAccessAllowed() -
getStartingDateTime
-
getEndingDateTime
-
getZoneId
-
doesEndingTimeAllowServiceAccess
protected boolean doesEndingTimeAllowServiceAccess()Does ending time allow service access boolean.- Returns:
- true/false
-
doesStartingTimeAllowServiceAccess
protected boolean doesStartingTimeAllowServiceAccess()Does starting time allow service access boolean.- Returns:
- true/false
-