public final class Authenticate
extends java.lang.Object
| Modifier and Type | Method | Description | 
|---|---|---|
| static void | authenticate(ServerEnvironment env,
            javax.security.auth.Subject subject) | Execute a WebLogic Server client login using the supplied environment 
 parameters; will populate the Subject with the appropriate Principals. | 
| static void | logout(javax.security.auth.Subject subject) | Remove Principals and credentials from the passed in Subject,
 effectively logging the user out. | 
public static void authenticate(ServerEnvironment env, javax.security.auth.Subject subject) throws javax.security.auth.login.LoginException, java.io.IOException, java.rmi.RemoteException
Execute a WebLogic Server client login using the supplied environment parameters; will populate the Subject with the appropriate Principals.
The authenticate() method is intended for use by fat clients to perform server-side authentication. Calling authenticate() via an RMI call from a client invokes server-side authentication, which then returns that Subject over RMI.
If you are writing a custom LoginModule that you want to interact with WebLogic Server authentication, this is the method to call from within that LoginModule.
javax.security.auth.login.LoginExceptionjava.io.IOExceptionjava.rmi.RemoteExceptionpublic static void logout(javax.security.auth.Subject subject)
                   throws javax.security.auth.login.LoginException,
                          java.io.IOException,
                          java.rmi.RemoteException
Remove Principals and credentials from the passed in Subject, effectively logging the user out.
javax.security.auth.login.LoginExceptionjava.io.IOExceptionjava.rmi.RemoteException