public class SubjectUtil extends Object
| Constructor and Description |
|---|
SubjectUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getGroupnamesFromSubject(Subject subject)
Utility method to find the group names from a subject.
|
static List<String> |
getUsernamesFromSubject(Subject subject)
Utility method to find the user names from a subject.
|
public static List<String> getUsernamesFromSubject(Subject subject)
PrincipalImpl inside the Subject's principal set.subject - the subject from which to find the user namepublic static List<String> getGroupnamesFromSubject(Subject subject)
Group inside the Subject's principal set.subject - the subject from which to find the usernameCopyright © 2013. All Rights Reserved.