Package org.apereo.cas.services
Class GroovyScriptAttributeReleasePolicy
java.lang.Object
org.apereo.cas.services.AbstractRegisteredServiceAttributeReleasePolicy
org.apereo.cas.services.GroovyScriptAttributeReleasePolicy
- All Implemented Interfaces:
Serializable
,org.apereo.cas.services.RegisteredServiceAttributeReleasePolicy
,org.springframework.core.Ordered
public class GroovyScriptAttributeReleasePolicy
extends AbstractRegisteredServiceAttributeReleasePolicy
This is
GroovyScriptAttributeReleasePolicy
that attempts to release attributes
based on the execution result of an external groovy script.- 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
getAttributesInternal
(org.apereo.cas.services.RegisteredServiceAttributeReleasePolicyContext context, Map<String, List<Object>> attributes) int
hashCode()
void
setGroovyScript
(String groovyScript) Methods inherited from class org.apereo.cas.services.AbstractRegisteredServiceAttributeReleasePolicy
getActivationCriteria, getAttributeFilter, getAttributes, getCanonicalizationMode, getConsentableAttributes, getConsentPolicy, getOrder, getPrincipalAttributesRepository, getPrincipalIdAttribute, isAuthorizedToReleaseAuthenticationAttributes, isAuthorizedToReleaseCredentialPassword, isAuthorizedToReleaseProxyGrantingTicket, isExcludeDefaultAttributes, postLoad, setActivationCriteria, setAttributeFilter, setAuthorizedToReleaseAuthenticationAttributes, setAuthorizedToReleaseCredentialPassword, setAuthorizedToReleaseProxyGrantingTicket, setCanonicalizationMode, setConsentPolicy, setExcludeDefaultAttributes, setOrder, setPrincipalAttributesRepository, setPrincipalIdAttribute, toString
Methods inherited from interface org.apereo.cas.services.RegisteredServiceAttributeReleasePolicy
getName
-
Constructor Details
-
GroovyScriptAttributeReleasePolicy
public GroovyScriptAttributeReleasePolicy() -
GroovyScriptAttributeReleasePolicy
-
-
Method Details
-
getAttributesInternal
public Map<String,List<Object>> getAttributesInternal(org.apereo.cas.services.RegisteredServiceAttributeReleasePolicyContext context, Map<String, List<Object>> attributes) throws Throwable- Throws:
Throwable
-
getGroovyScript
-
setGroovyScript
-
equals
- Overrides:
equals
in classAbstractRegisteredServiceAttributeReleasePolicy
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractRegisteredServiceAttributeReleasePolicy
-