public class ClientSecurity
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientSecurity.SimpleIdentityResolver |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IDENTITY_RESOLVER_STRATEGY |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
directAuthentication(java.lang.String username,
java.lang.String password,
ServerMetaData server)
This is a helper method for login modules.
|
static java.lang.Object |
directAuthentication(java.lang.String securityRealm,
java.lang.String username,
java.lang.String password,
ServerMetaData server) |
static java.lang.Object |
getIdentity() |
static IdentityResolver |
getIdentityResolver() |
static ServerMetaData |
getServer() |
static void |
login(java.lang.String username,
java.lang.String password)
Login the spedified user using the specified password.
|
static void |
login(java.lang.String username,
java.lang.String password,
boolean threadScoped)
Login the spedified user using the specified password either globally for the
entire Java Virtural Machine or scoped to the thread.
|
static void |
logout()
Clears the thread and global login data.
|
static void |
setIdentityResolver(IdentityResolver identityResolver) |
static void |
setServer(ServerMetaData server) |
public static final java.lang.String IDENTITY_RESOLVER_STRATEGY
public static ServerMetaData getServer()
public static void setServer(ServerMetaData server)
public static void login(java.lang.String username,
java.lang.String password)
throws javax.security.auth.login.FailedLoginException
username - the user to loginpassword - the password for the userjavax.security.auth.login.FailedLoginException - if the username and password combination are not valid or
if there is a problem communiating with the serverpublic static void login(java.lang.String username,
java.lang.String password,
boolean threadScoped)
throws javax.security.auth.login.FailedLoginException
username - the user to loginpassword - the password for the userthreadScoped - if true the login is scoped to the thread; otherwise the login is global
for the entire Java Virtural Machinejavax.security.auth.login.FailedLoginException - if the username and password combination are not valid or
if there is a problem communiating with the serverpublic static void logout()
public static java.lang.Object directAuthentication(java.lang.String username,
java.lang.String password,
ServerMetaData server)
throws javax.security.auth.login.FailedLoginException
username - the username for authenticationpassword - the password for authenticationserver - ServerMetaDatajavax.security.auth.login.FailedLoginException - if the username password combination is not validpublic static java.lang.Object directAuthentication(java.lang.String securityRealm,
java.lang.String username,
java.lang.String password,
ServerMetaData server)
throws javax.security.auth.login.FailedLoginException
javax.security.auth.login.FailedLoginExceptionpublic static java.lang.Object getIdentity()
public static IdentityResolver getIdentityResolver()
public static void setIdentityResolver(IdentityResolver identityResolver)