Class User.UserBuilder
java.lang.Object
com.codename1.backend.security.core.userdetails.User.UserBuilder
- Enclosing class:
User
-
Method Summary
Modifier and TypeMethodDescriptionaccountExpired(boolean accountExpired) accountLocked(boolean accountLocked) authorities(String... authorities) Grants authorities by name.authorities(Collection<? extends GrantedAuthority> authorities) Grants authorities.build()credentialsExpired(boolean credentialsExpired) disabled(boolean disabled) The password as it is to be stored, unlesspasswordEncoder(PasswordEncoder)says to encode it.passwordEncoder(PasswordEncoder encoder) Encodes the password withencoderwhen the user is built.Grants roles: each name gets theROLE_prefix, soroles("ADMIN")isauthorities("ROLE_ADMIN").
-
Method Details
-
username
-
password
The password as it is to be stored, unlesspasswordEncoder(PasswordEncoder)says to encode it. -
passwordEncoder
Encodes the password withencoderwhen the user is built. -
roles
Grants roles: each name gets theROLE_prefix, soroles("ADMIN")isauthorities("ROLE_ADMIN"). Replaces what was granted before. -
authorities
Grants authorities by name. Replaces what was granted before. -
authorities
Grants authorities. Replaces what was granted before. -
accountExpired
-
accountLocked
-
credentialsExpired
-
disabled
-
build
-