All Packages  This Package  Class Hierarchy  Class Search  Index

Class app.authkit.test.TestDetach
java.lang.Object
   |
   +----app.authkit.test.AuthTest
           |
           +----app.authkit.test.TestDetach

  Summary

public class  TestDetach
     extends app.authkit.test.AuthTest
{
          // Constructors 1
     public TestDetach();

          // Methods 2
     public static void main(String[]);

     public void testAuthOne(Authorization, boolean, String);
}

TestDetach calls Authorization.detach(true) on a session it attaches to. As long as there is at least one connection to the session, it should persist across detach()'s.

The parameters determine how it attaches to a session. All args are treated as file-names holding a secret identifier. Each file is read for its secret, then attach() is called, and then detach(true).

If there are no args, then this program assumes it's a child of execPrivileged(), so an attachPrivileged() will attach to the session, then detach(true) is called. This option is only possible via this class's main(), not via testAuth().

The property "authkit.imp" is the fully qualified class name of an Authorization to instantiate and use.




  Constructors

· TestDetach

Summary  |  Top

   public TestDetach() 

Default constructor



  Methods

· main

Summary  |  Top
   public static void main(String[] args) 

Static entry point, when used as an application.



· testAuthOne

Summary  |  Top
   public void testAuthOne(Authorization auth, 
                           boolean interact, 
                           String arg) 

Do the test on one arg. The 'interact' flag is unused. The arg is treated as a file-name whose contents is a secret identifier. Any UnauthorizedException elicits a stack-trace, but does not stop.

Overrides:
testAuthOne in class AuthTest


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7