Class DefaultAuthenticationAttributesConverter

java.lang.Object
com.broadleafcommerce.oauth2.resource.security.token.converter.DefaultAuthenticationAttributesConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<org.springframework.security.core.Authentication,Map<String,Object>>

public class DefaultAuthenticationAttributesConverter extends Object implements org.springframework.core.convert.converter.Converter<org.springframework.security.core.Authentication,Map<String,Object>>
Default implementation of Converter that is used for extracting the a map of attributes from an Authentication.

In particular, this implementation expects a BearerTokenAuthentication and returns the token attributes from it.

Author:
Nick Crum (ncrum)
  • Constructor Details

    • DefaultAuthenticationAttributesConverter

      public DefaultAuthenticationAttributesConverter()
  • Method Details

    • convert

      @Nullable public Map<String,Object> convert(@NonNull org.springframework.security.core.Authentication authentication)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<org.springframework.security.core.Authentication,Map<String,Object>>