|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openorb.orb.csiv2.CSIServerContext
public final class CSIServerContext
This class offers methods that are used in the context of a server-side request.
Method Summary | |
---|---|
static void |
addIdentity(java.lang.String name,
java.lang.String id)
Add an identity for a user. |
static void |
addUser(java.lang.String name,
java.lang.String password)
Add a new user to the user database. |
static java.lang.String |
getRealm()
Return the realm name. |
static java.lang.String |
getUserIdentity(java.lang.String name)
Return the identity for the specified user. |
static char[] |
getUserPassword(java.lang.String name)
Return the password for the specified user. |
static boolean |
hasUser(java.lang.String name)
Return true when the user exists in the database and false otherwise. |
static void |
setDefaultRealm(java.lang.String realm)
A default realm is used for the AS_Context when no realm is attached to the current thread. |
static void |
setRealm(java.lang.String realm)
Set the realm name of the current thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addUser(java.lang.String name, java.lang.String password)
name
- The name of the user.password
- The password of the user.public static void addIdentity(java.lang.String name, java.lang.String id)
name
- The name of the user.id
- The identity of the user.public static boolean hasUser(java.lang.String name)
name
- The name of the user.
public static char[] getUserPassword(java.lang.String name)
name
- The name of the user.
public static java.lang.String getUserIdentity(java.lang.String name)
name
- The name of the user.
public static void setDefaultRealm(java.lang.String realm)
realm
- The name of the default realm.public static void setRealm(java.lang.String realm)
realm
- The realm name.public static java.lang.String getRealm()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |