Package org.apereo.cas.services
Class RegexMatchingRegisteredServiceProxyPolicy
- java.lang.Object
-
- org.apereo.cas.services.RegexMatchingRegisteredServiceProxyPolicy
-
- All Implemented Interfaces:
java.io.Serializable
,org.apereo.cas.services.RegisteredServiceProxyPolicy
public class RegexMatchingRegisteredServiceProxyPolicy extends java.lang.Object implements org.apereo.cas.services.RegisteredServiceProxyPolicy
A proxy policy that only allows proxying to pgt urls that match the specified regex pattern.- Since:
- 4.1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RegexMatchingRegisteredServiceProxyPolicy(java.lang.String pgtUrlPattern)
Init the policy with the pgt url regex pattern that will determine the urls allowed to receive the pgt.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAllowedProxyCallbackUrl(java.net.URL pgtUrl)
boolean
isAllowedToProxy()
-
-
-
Constructor Detail
-
RegexMatchingRegisteredServiceProxyPolicy
public RegexMatchingRegisteredServiceProxyPolicy(java.lang.String pgtUrlPattern)
Init the policy with the pgt url regex pattern that will determine the urls allowed to receive the pgt. The matching by default is done in a case insensitive manner.- Parameters:
pgtUrlPattern
- the pgt url pattern
-
-
Method Detail
-
isAllowedToProxy
public boolean isAllowedToProxy()
- Specified by:
isAllowedToProxy
in interfaceorg.apereo.cas.services.RegisteredServiceProxyPolicy
-
isAllowedProxyCallbackUrl
public boolean isAllowedProxyCallbackUrl(java.net.URL pgtUrl)
- Specified by:
isAllowedProxyCallbackUrl
in interfaceorg.apereo.cas.services.RegisteredServiceProxyPolicy
-
-