Package org.apereo.cas.services
Class ReturnMappedAttributeReleasePolicy
- java.lang.Object
-
- org.apereo.cas.services.AbstractRegisteredServiceAttributeReleasePolicy
-
- org.apereo.cas.services.ReturnMappedAttributeReleasePolicy
-
- All Implemented Interfaces:
java.io.Serializable
,org.apereo.cas.services.RegisteredServiceAttributeReleasePolicy
public class ReturnMappedAttributeReleasePolicy extends AbstractRegisteredServiceAttributeReleasePolicy
Return a collection of allowed attributes for the principal, but additionally, offers the ability to rename attributes on a per-service level.- Since:
- 4.1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReturnMappedAttributeReleasePolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
getAllowedAttributes()
Gets the allowed attributes.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> attrs, 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
-
getAllowedAttributes
public java.util.Map<java.lang.String,java.lang.Object> getAllowedAttributes()
Gets the allowed attributes.- Returns:
- the allowed attributes
-
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> attrs, 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 principalattrs
- the principal attributesservice
- the service- Returns:
- the attributes allowed for release
-
-