Example usage for Java org.springframework.security.authentication UsernamePasswordAuthenticationToken fields, constructors, methods, implement or subclass
The text is from its open source code.
UsernamePasswordAuthenticationToken(Object principal, Object credentials) This constructor can be safely used by any code that wishes to create a UsernamePasswordAuthenticationToken , as the #isAuthenticated() will return false . | |
UsernamePasswordAuthenticationToken(Object principal, Object credentials, Collection extends GrantedAuthority> authorities) This constructor should only be used by AuthenticationManager or AuthenticationProvider implementations that are satisfied with producing a trusted (i.e. |
Collection | getAuthorities() |
Object | getCredentials() |
Object | getDetails() |
String | getName() |
Object | getPrincipal() |
boolean | isAuthenticated() |
void | setAuthenticated(boolean isAuthenticated) |
void | setDetails(Object details) |
String | toString() |