Class ReturnAllowedAttributeReleasePolicy

  • All Implemented Interfaces:
    java.io.Serializable, org.apereo.cas.services.RegisteredServiceAttributeReleasePolicy, org.springframework.core.Ordered

    public class ReturnAllowedAttributeReleasePolicy
    extends AbstractRegisteredServiceAttributeReleasePolicy
    Return only the collection of allowed attributes out of what's resolved for the principal.
    Since:
    4.1.0
    See Also:
    Serialized Form
    • Constructor Detail

      • ReturnAllowedAttributeReleasePolicy

        public ReturnAllowedAttributeReleasePolicy()
    • 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> 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
      • authorizeReleaseOfAllowedAttributes

        protected java.util.Map<java.lang.String,​java.lang.Object> authorizeReleaseOfAllowedAttributes​(java.util.Map<java.lang.String,​java.lang.Object> attrs)
        Authorize release of allowed attributes map.
        Parameters:
        attrs - the attributes
        Returns:
        the map