|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.auth.Authentication
Authentication service.
This class forwards calls to a server-side authentication server class.
Supported API: true
Extendable: false
Field Summary | |
private static Object |
ALLOW_USER_INTERACTION_KEY
|
private static String |
CLASSNAME
|
private static boolean |
defaultAllowUserInteraction
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Constructor Summary | |
private |
Authentication()
|
Method Summary | |
private static String |
_getUserName()
|
private static MethodAuthenticator |
_init(MethodAuthenticator authenticator)
|
private static void |
_reauthenticateUser()
|
static boolean |
getAllowUserInteraction()
Get whether the current WTContext should allow user interaction
to carry out authentication. |
static boolean |
getDefaultAllowUserInteraction()
Get default setting of whether user interation should be allowed to carry out authentication. |
static String |
getUserName()
Get authenticated user name for the current thread. |
static MethodAuthenticator |
init(MethodAuthenticator authenticator)
Initialization method called from bootstrapping authenticator's init method. |
static void |
main(String[] args)
Simple tester. |
static void |
reauthenticateUser()
Re-authenticate the user name for the current thread. |
private static boolean |
SERVER()
|
static void |
setAllowUserInteraction(boolean allow_user_interaction)
Set whether the current WTContext should allow user interaction
to carry out authentication. |
static void |
setDefaultAllowUserInteraction(boolean allow_user_interaction)
Set default value for whether user interation should be allowed to carry out authentication. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String CLASSNAME
private static Object ALLOW_USER_INTERACTION_KEY
private static boolean defaultAllowUserInteraction
Constructor Detail |
private Authentication()
Method Detail |
private static final boolean SERVER()
public static String getUserName() throws RemoteException
RemoteException
private static String _getUserName()
public static MethodAuthenticator init(MethodAuthenticator authenticator) throws RemoteException
authenticator
- the MethodAuthenticator
being initialized
MethodAuthenticator
RemoteException
private static MethodAuthenticator _init(MethodAuthenticator authenticator)
public static void reauthenticateUser() throws RemoteException
RemoteException
private static void _reauthenticateUser()
public static boolean getAllowUserInteraction()
WTContext
should allow user interaction
to carry out authentication. This setting can be used by bootstrapping method
authenticators to determine if interaction is allowed. The default is true.
public static void setAllowUserInteraction(boolean allow_user_interaction)
WTContext
should allow user interaction
to carry out authentication. This setting can be used by bootstrapping method
authenticators to determine if interaction is allowed. The default is true.
allow_user_interaction
- true if user interaction is allowed, false if not.public static boolean getDefaultAllowUserInteraction()
public static void setDefaultAllowUserInteraction(boolean allow_user_interaction)
allow_user_interaction
- true if user interaction is allowed, false if not.public static void main(String[] args) throws RemoteException, InterruptedException
RemoteException
InterruptedException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |