Class DefaultUserToAuthenticationConverter

  • All Implemented Interfaces:
    UserToAuthenticationConverter

    public class DefaultUserToAuthenticationConverter
    extends java.lang.Object
    implements UserToAuthenticationConverter
    This implementation copies username and password, converts all user groups to GrantedAuthoritys and puts them into a UsernamePasswordAuthenticationToken. Role names are prefixed, by default with "ROLE_" but this can be configured by setting the rolePrefix.
    • Constructor Detail

      • DefaultUserToAuthenticationConverter

        public DefaultUserToAuthenticationConverter()