Class ReturnEncryptedAttributeReleasePolicy

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

    public class ReturnEncryptedAttributeReleasePolicy
    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

      • ReturnEncryptedAttributeReleasePolicy

        public ReturnEncryptedAttributeReleasePolicy()
    • Method Detail

      • getAttributesInternal

        public java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> getAttributesInternal​(org.apereo.cas.services.RegisteredServiceAttributeReleasePolicyContext context,
                                                                                                            java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> attrs)
        Description copied from class: AbstractRegisteredServiceAttributeReleasePolicy
        Gets the attributes internally from the implementation.
        Specified by:
        getAttributesInternal in class AbstractRegisteredServiceAttributeReleasePolicy
        Parameters:
        context - the context
        attrs - the principal attributes
        Returns:
        the attributes allowed for release
      • authorizeReleaseOfAllowedAttributes

        protected java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> authorizeReleaseOfAllowedAttributes​(org.apereo.cas.services.RegisteredServiceAttributeReleasePolicyContext context,
                                                                                                                             java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> attrs)
        Authorize release of allowed attributes map.
        Parameters:
        context - the context
        attrs - the attributes
        Returns:
        the map
      • determineRequestedAttributeDefinitions

        public java.util.List<java.lang.String> determineRequestedAttributeDefinitions​(org.apereo.cas.services.RegisteredServiceAttributeReleasePolicyContext context)
        Description copied from class: AbstractRegisteredServiceAttributeReleasePolicy
        This method should be overridden by release policies that are able to request definitions by listing them as being released in the policy. This method should return the list of definitions keys that need to be resolved by the definition store so the can be resolved and released to the client.
        Overrides:
        determineRequestedAttributeDefinitions in class AbstractRegisteredServiceAttributeReleasePolicy
        Parameters:
        context - the context
        Returns:
        - List of requested attribute definitions to be released.