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:
  • Method Details

    • activeUser

      public static SecurityUserDetails activeUser(String tenant, String username, String password, String... userRoles)
    • activeUser

      public static SecurityUserDetails activeUser(String tenant, String username, String password, Iterable<String> userRoles)
    • activeUser

      public static SecurityUserDetails.SecurityUserDetailsBuilder activeUser(Iterable<String> userRoles)
    • builder

    • getAuthorities

      public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
      Specified by:
      getAuthorities in interface org.springframework.security.core.userdetails.UserDetails
    • getTenant

      public String getTenant()
    • getPassword

      public String getPassword()
      Specified by:
      getPassword in interface org.springframework.security.core.userdetails.UserDetails
    • getUsername

      public String getUsername()
      Specified by:
      getUsername in interface org.springframework.security.core.userdetails.UserDetails
    • getOAuthAccessToken

      public String getOAuthAccessToken()
    • getXsrfToken

      public String getXsrfToken()
    • isAccountNonExpired

      public boolean isAccountNonExpired()
      Specified by:
      isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetails
    • isAccountNonLocked

      public boolean isAccountNonLocked()
      Specified by:
      isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetails
    • isCredentialsNonExpired

      public boolean isCredentialsNonExpired()
      Specified by:
      isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetails
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.springframework.security.core.userdetails.UserDetails
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object