Example usage for Java javax.security.auth Subject fields, constructors, methods, implement or subclass
The text is from its open source code.
Subject() Create an instance of a Subject with an empty Set of Principals and empty Sets of public and private credentials. | |
Subject(boolean readOnly, Set extends Principal> principals, Set> pubCredentials, Set> privCredentials) Create an instance of a Subject with Principals and credentials. |
T | doAs(final Subject subject, final java.security.PrivilegedAction Perform work as a particular Subject . |
T | doAs(final Subject subject, final java.security.PrivilegedExceptionAction Perform work as a particular Subject . |
T | doAsPrivileged(final Subject subject, final java.security.PrivilegedAction Perform privileged work as a particular Subject . |
T | doAsPrivileged(final Subject subject, final java.security.PrivilegedExceptionAction Perform privileged work as a particular Subject . |
Set | getPrincipals() Return the Set of Principals associated with this Subject . |
Set | getPrincipals(Class Return a Set of Principals associated with this Subject that are instances or subclasses of the specified Class . |
Set | getPrivateCredentials(Class Return a Set of private credentials associated with this Subject that are instances or subclasses of the specified Class . |
Set | getPrivateCredentials() Return the Set of private credentials held by this Subject . |
Set | getPublicCredentials() Return the Set of public credentials held by this Subject . |
Set | getPublicCredentials(Class Return a Set of public credentials associated with this Subject that are instances or subclasses of the specified Class . |
Subject | getSubject(final AccessControlContext acc) Get the Subject associated with the provided AccessControlContext . |
boolean | isReadOnly() Query whether this Subject is read-only. |
void | setReadOnly() Set this Subject to be read-only. |
String | toString() Return the String representation of this Subject . |