Class StandardSubject


  • public class StandardSubject
    extends JaasSubject
    Standard JAAS implementation of the JAAS Subject helper API. This implementation (because of a problem in JAAS) can cut off the Subject object from the thread context.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected StandardSubject()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.security.auth.Subject getSubject()
      SPI method.
      java.lang.Object runAs​(javax.security.auth.Subject subject, java.security.PrivilegedAction action)
      SPI method.
      java.lang.Object runAs​(javax.security.auth.Subject subject, java.security.PrivilegedExceptionAction action)
      SPI method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StandardSubject

        protected StandardSubject()
    • Method Detail

      • getSubject

        public javax.security.auth.Subject getSubject()
        Description copied from class: JaasSubject
        SPI method.
        Specified by:
        getSubject in class JaasSubject
      • runAs

        public java.lang.Object runAs​(javax.security.auth.Subject subject,
                                      java.security.PrivilegedAction action)
        Description copied from class: JaasSubject
        SPI method.
        Specified by:
        runAs in class JaasSubject
      • runAs

        public java.lang.Object runAs​(javax.security.auth.Subject subject,
                                      java.security.PrivilegedExceptionAction action)
                               throws java.security.PrivilegedActionException
        Description copied from class: JaasSubject
        SPI method.
        Specified by:
        runAs in class JaasSubject
        Throws:
        java.security.PrivilegedActionException