public class AccountImpl extends Object implements io.undertow.security.idm.Account, Serializable
Constructor and Description |
---|
AccountImpl(Principal principal) |
AccountImpl(Principal principal,
Set<String> roles,
Object credential) |
AccountImpl(Principal principal,
Set<String> roles,
Object credential,
Principal originalPrincipal) |
AccountImpl(String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Object |
getCredential() |
Principal |
getOriginalPrincipal()
If the original principal was set then this will be returned, otherwise
it will return the current principal.
|
Principal |
getPrincipal() |
Set<String> |
getRoles() |
int |
hashCode() |
public AccountImpl(String name)
public AccountImpl(Principal principal)
public AccountImpl(Principal principal, Set<String> roles, Object credential, Principal originalPrincipal)
public Principal getPrincipal()
getPrincipal
in interface io.undertow.security.idm.Account
public Set<String> getRoles()
getRoles
in interface io.undertow.security.idm.Account
public Principal getOriginalPrincipal()
IdentityManager.verify(io.undertow.security.idm.Account)
for an existing account this is the principal that must be used.
see UNDERTOW-273public Object getCredential()
Copyright © 2017 JBoss by Red Hat. All rights reserved.