public class ClientSecurity extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientSecurity.SimpleIdentityResolver |
| Modifier and Type | Field and Description |
|---|---|
static String |
IDENTITY_RESOLVER_STRATEGY |
| Modifier and Type | Method and Description |
|---|---|
static Object |
directAuthentication(String username,
String password,
ServerMetaData server)
This is a helper method for login modules.
|
static Object |
directAuthentication(String securityRealm,
String username,
String password,
ServerMetaData server) |
static Object |
getIdentity() |
static IdentityResolver |
getIdentityResolver() |
static ServerMetaData |
getServer() |
static void |
login(String username,
String password)
Login the spedified user using the specified password.
|
static void |
login(String username,
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 String IDENTITY_RESOLVER_STRATEGY
public static ServerMetaData getServer()
public static void setServer(ServerMetaData server)
public static void login(String username, String password) throws FailedLoginException
username - the user to loginpassword - the password for the userFailedLoginException - if the username and password combination are not valid or
if there is a problem communiating with the serverpublic static void login(String username, String password, boolean threadScoped) throws 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 MachineFailedLoginException - if the username and password combination are not valid or
if there is a problem communiating with the serverpublic static void logout()
public static Object directAuthentication(String username, String password, ServerMetaData server) throws FailedLoginException
username - the username for authenticationpassword - the password for authenticationserver - ServerMetaDataFailedLoginException - if the username password combination is not validpublic static Object directAuthentication(String securityRealm, String username, String password, ServerMetaData server) throws FailedLoginException
FailedLoginExceptionpublic static Object getIdentity()
public static IdentityResolver getIdentityResolver()
public static void setIdentityResolver(IdentityResolver identityResolver)
Copyright © 1999-2014 The Apache Software Foundation. All Rights Reserved.