Package org.apereo.cas.services
Class RemoteEndpointServiceAccessStrategy
java.lang.Object
org.apereo.cas.services.BaseRegisteredServiceAccessStrategy
org.apereo.cas.services.RemoteEndpointServiceAccessStrategy
- All Implemented Interfaces:
Serializable
,org.apereo.cas.services.RegisteredServiceAccessStrategy
,org.springframework.core.Ordered
This is
RemoteEndpointServiceAccessStrategy
that reaches out
to a remote endpoint, passing the CAS principal id to determine if access is allowed.
If the status code returned in the final response is not accepted by the policy here,
access shall be denied.- Since:
- 5.0.0
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
authorizeRequest
(org.apereo.cas.services.RegisteredServiceAccessStrategyRequest request) boolean
int
hashCode()
setAcceptableResponseCodes
(String acceptableResponseCodes) setEndpointUrl
(String endpointUrl) setHeaders
(Map<String, String> headers) toString()
Methods inherited from class org.apereo.cas.services.BaseRegisteredServiceAccessStrategy
getDelegatedAuthenticationPolicy, setDelegatedAuthenticationPolicy
Methods inherited from interface org.apereo.cas.services.RegisteredServiceAccessStrategy
getOrder, getRequiredAttributes, getUnauthorizedRedirectUrl, isServiceAccessAllowed, isServiceAccessAllowedForSso
-
Constructor Details
-
RemoteEndpointServiceAccessStrategy
public RemoteEndpointServiceAccessStrategy()
-
-
Method Details
-
authorizeRequest
public boolean authorizeRequest(org.apereo.cas.services.RegisteredServiceAccessStrategyRequest request) -
toString
- Overrides:
toString
in classBaseRegisteredServiceAccessStrategy
-
getEndpointUrl
-
getAcceptableResponseCodes
-
getMethod
-
getHeaders
-
setEndpointUrl
- Returns:
this
.
-
setAcceptableResponseCodes
public RemoteEndpointServiceAccessStrategy setAcceptableResponseCodes(String acceptableResponseCodes) - Returns:
this
.
-
setMethod
- Returns:
this
.
-
setHeaders
- Returns:
this
.
-
equals
- Overrides:
equals
in classBaseRegisteredServiceAccessStrategy
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBaseRegisteredServiceAccessStrategy
-