Class DenyAllAttributeReleasePolicy

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

    public class DenyAllAttributeReleasePolicy
    extends AbstractRegisteredServiceAttributeReleasePolicy
    A deny rule to refuse all service from receiving attributes, whether default or not.
    Since:
    5.0.0
    See Also:
    Serialized Form
    • Constructor Detail

      • DenyAllAttributeReleasePolicy

        public DenyAllAttributeReleasePolicy()
    • Method Detail

      • getAttributesInternal

        public java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> getAttributesInternal​(org.apereo.cas.authentication.principal.Principal principal,
                                                                                                            java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> attributes,
                                                                                                            org.apereo.cas.services.RegisteredService registeredService,
                                                                                                            org.apereo.cas.authentication.principal.Service selectedService)
        Description copied from class: AbstractRegisteredServiceAttributeReleasePolicy
        Gets the attributes internally from the implementation.
        Specified by:
        getAttributesInternal in class AbstractRegisteredServiceAttributeReleasePolicy
        Parameters:
        principal - the principal
        attributes - the principal attributes
        registeredService - the service
        selectedService - the selected service
        Returns:
        the attributes allowed for release
      • isExcludeDefaultAttributes

        public boolean isExcludeDefaultAttributes()
      • isAuthorizedToReleaseCredentialPassword

        public boolean isAuthorizedToReleaseCredentialPassword()
      • isAuthorizedToReleaseProxyGrantingTicket

        public boolean isAuthorizedToReleaseProxyGrantingTicket()
      • isAuthorizedToReleaseAuthenticationAttributes

        public boolean isAuthorizedToReleaseAuthenticationAttributes()
      • returnFinalAttributesCollection

        protected java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> returnFinalAttributesCollection​(java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> attributesToRelease,
                                                                                                                         org.apereo.cas.services.RegisteredService service)
        Description copied from class: AbstractRegisteredServiceAttributeReleasePolicy
        Return the final attributes collection. Subclasses may override this minute to impose last minute rules.
        Overrides:
        returnFinalAttributesCollection in class AbstractRegisteredServiceAttributeReleasePolicy
        Parameters:
        attributesToRelease - the attributes to release
        service - the service
        Returns:
        the map