Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public interface UserDetails

Known subtypesUser

A user as the security layer needs to know one: a name, an encoded password, what it has been granted, and whether the account may be used.

Methods

public abstract Collection<? extends GrantedAuthority> getAuthorities()What the user has been granted; never null.
public abstract String getPassword()The password as it is stored: encoded, with the {id} prefix a delegating encoder reads.
public abstract String getUsername()
public default boolean isAccountNonExpired()
public default boolean isAccountNonLocked()
public default boolean isCredentialsNonExpired()
public default boolean isEnabled()

Method details

getAuthorities

public abstract Collection<? extends GrantedAuthority> getAuthorities()
What the user has been granted; never null.

getPassword

public abstract String getPassword()
The password as it is stored: encoded, with the {id} prefix a delegating encoder reads.

getUsername

public abstract String getUsername()

isAccountNonExpired

public default boolean isAccountNonExpired()

isAccountNonLocked

public default boolean isAccountNonLocked()

isCredentialsNonExpired

public default boolean isCredentialsNonExpired()

isEnabled

public default boolean isEnabled()