Class DefaultAuthenticationUtils

    • Constructor Detail

      • DefaultAuthenticationUtils

        public DefaultAuthenticationUtils()
    • Method Detail

      • setAttributesConverter

        @Autowired(required=false)
        @Qualifier("authenticationAttributesConverter")
        public void setAttributesConverter​(@Nullable
                                           org.springframework.core.convert.converter.Converter<org.springframework.security.core.Authentication,​Map<String,​Object>> attributesConverter)
      • getAuthenticationAttributes

        public Map<String,​Object> getAuthenticationAttributes()
        Description copied from interface: AuthenticationUtils
        Retrieves the attributes on the current Authentication. This method is expected to return the attributes in a map which is generally achieved by a registered Converter bean.
        Specified by:
        getAuthenticationAttributes in interface AuthenticationUtils
        Returns:
        the attributes, if any, on the current Authentication
      • userIsAnonymous

        public boolean userIsAnonymous()
        Description copied from interface: AuthenticationUtils
        Checks if the authenticated user is anonymous.
        Specified by:
        userIsAnonymous in interface AuthenticationUtils
        Returns:
        true if the authenticated user is anonymous, otherwise false
      • getAuthenticatedCustomerSegmentIds

        public List<String> getAuthenticatedCustomerSegmentIds()
        Description copied from interface: AuthenticationUtils
        Retrieves the customer segment ids found on the authentication of the current security context.
        Specified by:
        getAuthenticatedCustomerSegmentIds in interface AuthenticationUtils
        Returns:
        list of customer segment ids found on the authentication of the current security context
      • userIsCSR

        public boolean userIsCSR()
        Description copied from interface: AuthenticationUtils
        Checks if the authenticated user is CSR.
        Specified by:
        userIsCSR in interface AuthenticationUtils
        Returns:
        true if the authenticated user is CSR, otherwise false
      • userIsCSRAnonymous

        public boolean userIsCSRAnonymous()
        Description copied from interface: AuthenticationUtils
        Checks if the authenticated user is CSR anonymous.
        Specified by:
        userIsCSRAnonymous in interface AuthenticationUtils
        Returns:
        true if the authenticated user is CSR anonymous, otherwise false