Java org.springframework.security.core.userdetails User fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.security.core.userdetails User fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.security.core.userdetails User.

The text is from its open source code.

Subclass

org.springframework.security.core.userdetails.User has subclasses.
Click this link to see all its subclasses.

Implementation

org.springframework.security.core.userdetails.User has the following implementations.
Click this link to see all its implementation.

Constructor

User(String username, String password, Collection authorities)
Calls the more complex constructor with all boolean arguments set to true .
User
User(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection authorities)
Construct the User with the details required by org.springframework.security.authentication.dao.DaoAuthenticationProvider .

Method

booleanequals(Object rhs)
Returns true if the supplied object is a User instance with the same username value.
CollectiongetAuthorities()
StringgetPassword()
StringgetUsername()
booleanisAccountNonExpired()
booleanisAccountNonLocked()
booleanisCredentialsNonExpired()
booleanisEnabled()
UserBuilderwithUsername(String username)
Creates a UserBuilder with a specified user name