com.ibm.security.auth

Class NTThreadSubject

  1. java.lang.Object
  2. extended bycom.ibm.security.auth.ThreadSubject
  3. extended bycom.ibm.security.auth.NTThreadSubject

  1. public final class NTThreadSubject
  2. extends ThreadSubject
This class provides the default implementation of ThreadSubject for NT

Constructor Summary

Constructor and Description
NTThreadSubject()

Method Summary

Modifier and Type Method and Description
  1. protected
  2. void
restore()
Restore the underlying operating system thread's original identity.
  1. protected
  2. void
set(Subject subject)
Set the underlying operating system thread identity.
  1. static
  2. void
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

  1. public NTThreadSubject()

Method Detail

set

  1. protected void set(Subject subject)
  2. throws java.lang.UnsupportedOperationException
  3. java.lang.SecurityException
Set the underlying operating system thread identity.

This method extracts the relevant Principal and/or Credential information from the specified Subject and associate it with the underlying operating system thread.

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

  1. protected void restore()
  2. throws java.lang.UnsupportedOperationException
  3. 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:
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

  1. public static void whoaminow()