Package org.apereo.cas.services
Class RegexRegisteredService
- java.lang.Object
-
- org.apereo.cas.services.AbstractRegisteredService
-
- org.apereo.cas.services.RegexRegisteredService
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<org.apereo.cas.services.RegisteredService>
,org.apereo.cas.services.RegisteredService
public class RegexRegisteredService extends AbstractRegisteredService
Mutable registered service that uses Java regular expressions for service matching. Matching is case insensitive, and is successful, if, and only if, the entire region sequence matches the pattern.- Since:
- 3.4
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FRIENDLY_NAME
The friendly name for this client.-
Fields inherited from class org.apereo.cas.services.AbstractRegisteredService
serviceId
-
-
Constructor Summary
Constructors Constructor Description RegexRegisteredService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureMatchingStrategy()
Configure matching strategy.java.lang.String
getFriendlyName()
boolean
matches(java.lang.String serviceId)
boolean
matches(org.apereo.cas.authentication.principal.Service service)
protected AbstractRegisteredService
newInstance()
Create a new service instance.void
setServiceId(java.lang.String id)
Sets the service identifier.-
Methods inherited from class org.apereo.cas.services.AbstractRegisteredService
compareTo, getRequiredHandlers, initialize, setRequiredHandlers
-
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.RegisteredService
getAcceptableUsagePolicy, getAccessStrategy, getAttributeReleasePolicy, getAuthenticationPolicy, getContacts, getDescription, getEnvironments, getEvaluationOrder, getEvaluationPriority, getExpirationPolicy, getId, getInformationUrl, getLocale, getLogo, getLogoutType, getLogoutUrl, getMatchingStrategy, getMultifactorPolicy, getName, getPrivacyUrl, getProperties, getProxyGrantingTicketExpirationPolicy, getProxyPolicy, getProxyTicketExpirationPolicy, getPublicKey, getRedirectUrl, getResponseType, getServiceId, getServiceTicketExpirationPolicy, getSingleSignOnParticipationPolicy, getTheme, getTicketGrantingTicketExpirationPolicy, getUsernameAttributeProvider, getWebflowInterruptPolicy, setEvaluationOrder, setId
-
-
-
-
Field Detail
-
FRIENDLY_NAME
public static final java.lang.String FRIENDLY_NAME
The friendly name for this client.- See Also:
- Constant Field Values
-
-
Method Detail
-
setServiceId
public void setServiceId(java.lang.String id)
Description copied from class:AbstractRegisteredService
Sets the service identifier. Extensions are to define the format.- Specified by:
setServiceId
in classAbstractRegisteredService
- Parameters:
id
- the new service id
-
matches
public boolean matches(org.apereo.cas.authentication.principal.Service service)
-
matches
public boolean matches(java.lang.String serviceId)
-
getFriendlyName
public java.lang.String getFriendlyName()
-
configureMatchingStrategy
protected void configureMatchingStrategy()
Configure matching strategy. If the strategy is undefined, it will default toFullRegexRegisteredServiceMatchingStrategy
.
-
newInstance
protected AbstractRegisteredService newInstance()
Description copied from class:AbstractRegisteredService
Create a new service instance.- Specified by:
newInstance
in classAbstractRegisteredService
- Returns:
- the registered service
-
-