public class RemoteEndpointServiceAccessStrategy extends DefaultRegisteredServiceAccessStrategy
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.Constructor and Description |
---|
RemoteEndpointServiceAccessStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
doPrincipalAttributesAllowServiceAccess(java.lang.String principal,
java.util.Map<java.lang.String,java.lang.Object> principalAttributes)
Verify authorization policy by checking the pre-configured rules
that may depend on what the principal might be carrying.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAcceptableResponseCodes() |
java.lang.String |
getEndpointUrl() |
int |
hashCode() |
void |
setAcceptableResponseCodes(java.lang.String acceptableResponseCodes) |
void |
setEndpointUrl(java.lang.String endpointUrl) |
java.lang.String |
toString() |
enoughAttributesAvailableToProcess, getRejectedAttributes, getRequiredAttributes, getUnauthorizedRedirectUrl, isCaseInsensitive, isEnabled, isRequireAllAttributes, isServiceAccessAllowed, isServiceAccessAllowedForSso, isSsoEnabled, setCaseInsensitive, setEnabled, setRejectedAttributes, setRequireAllAttributes, setRequiredAttributes, setSsoEnabled, setUnauthorizedRedirectUrl
public boolean doPrincipalAttributesAllowServiceAccess(java.lang.String principal, java.util.Map<java.lang.String,java.lang.Object> principalAttributes)
DefaultRegisteredServiceAccessStrategy
doPrincipalAttributesAllowServiceAccess
in interface RegisteredServiceAccessStrategy
doPrincipalAttributesAllowServiceAccess
in class DefaultRegisteredServiceAccessStrategy
principal
- The authenticated principalprincipalAttributes
- the principal attributes. Rather than passing the principal
directly, we are only allowing principal attributes
given they may be coming from a source external to the principal
itself. (Cached principal attributes, etc)public java.lang.String getEndpointUrl()
public void setEndpointUrl(java.lang.String endpointUrl)
public java.lang.String getAcceptableResponseCodes()
public void setAcceptableResponseCodes(java.lang.String acceptableResponseCodes)
public boolean equals(java.lang.Object obj)
equals
in class DefaultRegisteredServiceAccessStrategy
public int hashCode()
hashCode
in class DefaultRegisteredServiceAccessStrategy
public java.lang.String toString()
toString
in class DefaultRegisteredServiceAccessStrategy