Class BaseAccount

  • All Implemented Interfaces:
    io.undertow.security.idm.Account, Serializable
    Direct Known Subclasses:
    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:
    Serialized Form
    • Constructor Detail

      • BaseAccount

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

      • 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