Package org.apereo.cas.services
Class GroovyScriptAttributeReleasePolicy
- java.lang.Object
-
- org.apereo.cas.services.AbstractRegisteredServiceAttributeReleasePolicy
-
- org.apereo.cas.services.GroovyScriptAttributeReleasePolicy
-
- All Implemented Interfaces:
java.io.Serializable
,org.apereo.cas.services.RegisteredServiceAttributeReleasePolicy
,org.springframework.core.Ordered
public class GroovyScriptAttributeReleasePolicy extends AbstractRegisteredServiceAttributeReleasePolicy
This isGroovyScriptAttributeReleasePolicy
that attempts to release attributes based on the execution result of an external groovy script.- Since:
- 5.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GroovyScriptAttributeReleasePolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
getAttributesInternal(org.apereo.cas.authentication.principal.Principal principal, java.util.Map<java.lang.String,java.lang.Object> attributes, org.apereo.cas.services.RegisteredService service)
Gets the attributes internally from the implementation.-
Methods inherited from class org.apereo.cas.services.AbstractRegisteredServiceAttributeReleasePolicy
getAttributes, getConsentableAttributes, getReleasedByDefaultAttributes, insertPrincipalIdAsAttributeIfNeeded, postLoad, resolveAttributesFromPrincipalAttributeRepository, returnFinalAttributesCollection
-
-
-
-
Method Detail
-
getAttributesInternal
public java.util.Map<java.lang.String,java.lang.Object> getAttributesInternal(org.apereo.cas.authentication.principal.Principal principal, java.util.Map<java.lang.String,java.lang.Object> attributes, org.apereo.cas.services.RegisteredService service)
Description copied from class:AbstractRegisteredServiceAttributeReleasePolicy
Gets the attributes internally from the implementation.- Specified by:
getAttributesInternal
in classAbstractRegisteredServiceAttributeReleasePolicy
- Parameters:
principal
- the principalattributes
- the principal attributesservice
- the service- Returns:
- the attributes allowed for release
-
-