public final class SubjectUtils extends Object
Subjects. These methods are not privileged, thus the
caller must have the relevant permissions.| Constructor and Description |
|---|
SubjectUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <P extends Principal> |
getPrincipal(Class<P> type,
Subject subject)
Get the principal of the given type.
|
static <C> C |
getPrivateCredential(Class<C> type,
Subject subject)
Get the private credential of the given type.
|
static <C> C |
getPublicCredential(Class<C> type,
Subject subject)
Get the public credential of the given type.
|
public static <P extends Principal> P getPrincipal(Class<P> type, Subject subject)
null if none was foundpublic static <C> C getPublicCredential(Class<C> type, Subject subject)
null if none was foundCopyright © 2014 JBoss by Red Hat. All rights reserved.