Class SecurityUserDetails
java.lang.Object
com.cumulocity.microservice.security.service.SecurityUserDetails
- All Implemented Interfaces:
Serializable
,org.springframework.security.core.userdetails.UserDetails
public class SecurityUserDetails
extends Object
implements org.springframework.security.core.userdetails.UserDetails
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionactiveUser
(Iterable<String> userRoles) static SecurityUserDetails
static SecurityUserDetails
activeUser
(String tenant, String username, String password, String... userRoles) builder()
boolean
Collection<? extends org.springframework.security.core.GrantedAuthority>
int
hashCode()
boolean
boolean
boolean
boolean
toString()
-
Method Details
-
activeUser
public static SecurityUserDetails activeUser(String tenant, String username, String password, String... userRoles) -
activeUser
-
activeUser
-
builder
-
getAuthorities
- Specified by:
getAuthorities
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getTenant
-
getPassword
- Specified by:
getPassword
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getUsername
- Specified by:
getUsername
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getOAuthAccessToken
-
getXsrfToken
-
isAccountNonExpired
public boolean isAccountNonExpired()- Specified by:
isAccountNonExpired
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isAccountNonLocked
public boolean isAccountNonLocked()- Specified by:
isAccountNonLocked
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isCredentialsNonExpired
public boolean isCredentialsNonExpired()- Specified by:
isCredentialsNonExpired
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
equals
-
hashCode
public int hashCode() -
toString
-