Class BaseAccount

java.lang.Object
org.restheart.security.BaseAccount
All Implemented Interfaces:
io.undertow.security.idm.Account, Serializable
Direct Known Subclasses:
JwtAccount, PwdCredentialAccount

public class BaseAccount extends Object implements io.undertow.security.idm.Account
Base concrete Account implementation
Author:
Andrea Di Cesare <andrea@softinstigate.com>
See Also:
  • Constructor Details

    • BaseAccount

      public BaseAccount(String name, Set<String> roles)
      Parameters:
      name -
      roles -
  • Method Details

    • getPrincipal

      public Principal getPrincipal()
      Specified by:
      getPrincipal in interface io.undertow.security.idm.Account
      Returns:
    • getRoles

      public Set<String> getRoles()
      Specified by:
      getRoles in interface io.undertow.security.idm.Account
    • toString

      public String toString()
      Overrides:
      toString in class Object