com.ibm.security.auth
Class NTThreadSubject
- java.lang.Object
com.ibm.security.auth.ThreadSubject
com.ibm.security.auth.NTThreadSubject
- public final class NTThreadSubject
- extends ThreadSubject
Constructor Summary
| Constructor and Description |
|---|
NTThreadSubject()
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
restore()
Restore the underlying operating system thread's original identity.
|
|
set(Subject subject)
Set the underlying operating system thread identity.
|
|
whoaminow()
|
| Methods inherited from class com.ibm.security.auth.ThreadSubject |
|---|
doAs, doAs, doAsPrivileged, doAsPrivileged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
NTThreadSubject
- public NTThreadSubject()
Method Detail
set
- protected void set(Subject subject)
- throws java.lang.UnsupportedOperationException
- java.lang.SecurityException
Specified by:
set in class ThreadSubject
Parameters:
subject - from which the method implementation extracts
the relevant Principal and/or
Credential information from the specified
Subject. This information is then
associated with the underlying operating system thread. Throws:
java.lang.UnsupportedOperationException - if this operation is not
supported or if this operation fails.
java.lang.SecurityException - if the caller attempts to invoke this
method and does not have permission. restore
- protected void restore()
- throws java.lang.UnsupportedOperationException
- java.lang.SecurityException
Restore the underlying operating system thread's original identity.
Implementations of this method restore the original
operating system thread identity modified
by the set method.
Specified by:
restore in class ThreadSubject
Throws:
java.lang.UnsupportedOperationException - if this operation is not
supported or if this operation fails.
java.lang.SecurityException - if the caller attempts to invoke this
method and does not have permission. whoaminow
- public static void whoaminow()
This method extracts the relevant
Principaland/orCredentialinformation from the specifiedSubjectand associate it with the underlying operating system thread.