public final class Caller extends Object
Modifier and Type | Method and Description |
---|---|
static Caller |
createCaller(Subject subject) |
Set<String> |
getAssociatedGroups()
This method returns a
Set of groups loaded for the user during the authentication step. |
Set<String> |
getAssociatedRoles()
This method returns the set of roles already associated with the caller.
|
String |
getName()
Obtain the name of the caller, most likely a user but could also be a remote process.
|
String |
getRealm()
Obtain the realm used for authentication.
|
Subject |
getSubject()
Obtain the
Subject used to create this caller. |
boolean |
hasSubject()
|
public String getName()
public String getRealm()
public Set<String> getAssociatedGroups()
Set
of groups loaded for the user during the authentication step.
Note: Groups are also assumed to be specific to the realm.public Set<String> getAssociatedRoles()
Set
of associated roles or an empty set if none.Copyright © 2023 JBoss by Red Hat. All rights reserved.