Class 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 Detail

      • ReturnMappedAttributeReleasePolicy

        public ReturnMappedAttributeReleasePolicy()
    • 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 class AbstractRegisteredServiceAttributeReleasePolicy
        Parameters:
        principal - the principal
        attrs - the principal attributes
        service - the service
        Returns:
        the attributes allowed for release