All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----app.authkit.test.AuthTest | +----app.authkit.test.TestReattach
| Summary |
public class TestReattach
extends app.authkit.test.AuthTest
{
// Constructors 1
public TestReattach();
// Methods 2
public static void main(String[]);
public void testAuthOne(Authorization, boolean, String);
}
Test attach() using a secret identifier locally (in a single process). This tests how well two distinct Authorizations will refer to a single underlying session.
The property "authkit.imp" is the fully qualified class name of an Authorization to instantiate and use.
| Constructors |
· TestReattach | Summary | Top |
public TestReattach()
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. This methood doesn't use the 'interact' arg. The 'arg' is a filename, into which is dumped the hex form of a reinternalized session. Also dumped into the file is the externalized 'auth' session ID, for comparison purposes.
The concrete Authorization's Class is used to construct a new instance. This method naively assumes that Class.newInstance() will work for this. A smarter approach would be to use a Constructor.
This method DOES NOT handle the secret identifier securely. This suffices for a test, but DO NOT do this in production code.
- Overrides:
- testAuthOne in class AuthTest
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7