Uses of Class
javax.security.auth.Subject
| Package | Description |
|---|---|
| java.security |
Extensible cryptographic service provider infrastructure (SPI) for using
and defining services such as
Certificates,
Keys, KeyStores, MessageDigests, and Signatures. |
| javax.security.auth |
-
Uses of Subject in java.security
Methods in java.security with parameters of type Subject Modifier and Type Method Description abstract voidAuthProvider. login(Subject subject, CallbackHandler handler) -
Uses of Subject in javax.security.auth
Methods in javax.security.auth that return Subject Modifier and Type Method Description static SubjectSubject. getSubject(AccessControlContext context)Returns theSubjectthat was last associated with thecontextprovided as argument.SubjectSubjectDomainCombiner. getSubject()Methods in javax.security.auth with parameters of type Subject Modifier and Type Method Description static <T> TSubject. doAs(Subject subject, PrivilegedAction<T> action)Runs the code defined byactionusing the permissions granted to theSubjectitself and to the code as well.static <T> TSubject. doAs(Subject subject, PrivilegedExceptionAction<T> action)Runs the code defined byactionusing the permissions granted to the subject and to the code itself.static <T> TSubject. doAsPrivileged(Subject subject, PrivilegedAction<T> action, AccessControlContext context)Run the code defined byactionusing the permissions granted to theSubjectand to the code itself, additionally providing a more specific context.static <T> TSubject. doAsPrivileged(Subject subject, PrivilegedExceptionAction<T> action, AccessControlContext context)Runs the code defined byactionusing the permissions granted to the subject and to the code itself, additionally providing a more specific context.Constructors in javax.security.auth with parameters of type Subject Constructor Description SubjectDomainCombiner(Subject subject)