|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.ibm.dse.base.DSENotifier
|
+--com.ibm.dse.base.Service
|
+--com.ibm.dse.applsrv.aa.SecurityAccessService
This class implements the Security Access Service.
| Fields inherited from class com.ibm.dse.base.Service |
externalizer |
| Fields inherited from class com.ibm.dse.base.DSENotifier |
handlersList,
name |
| Constructor Summary | |
SecurityAccessService()
SecurityService constructor. |
|
SecurityAccessService(java.lang.String aName)
Constructs a Security Service instance with a name attribute set to aName. |
|
| Method Summary | |
boolean |
canLogOn(java.lang.String user,
java.lang.String password)
Check validity of user id and password. |
boolean |
checkAccess(java.lang.String nameOfService,
int id)
Check the accessability of a service by the current user. |
static void |
debug()
Enable debugging. |
static void |
dump(java.lang.Throwable e,
java.lang.String s,
boolean raise)
Dump a (nested) exception to the display. |
void |
forcedSignOff(int signoffContext,
int callerContext)
This method disables the specified context. |
void |
forcedSignOn(java.lang.String userId,
java.lang.String password,
int id)
This method attempts to signon onto another user's context - raising an exception if it fails. |
java.lang.String[] |
getActiveUsersFromGroup(java.lang.String aGroup,
int id)
Return the list of active users that are members of the specified group. |
java.lang.String[] |
getActiveUsersWithRight(java.lang.String aRight,
int id)
Return the list of active users that are currently logged on and have the specified right. |
java.lang.String[] |
getActiveUsersWithRole(java.lang.String aRole,
int id)
Return the list of active users that are currently logged on and have the specified role. |
Dictionary |
getContainerLmt(SecurityLimit aLimit)
Returns a copy of the container limit information of aLimit |
Dictionary |
getContainerLmt(java.lang.String userid,
java.lang.String curCode,
java.lang.String containerType,
java.lang.String containerSubType)
Returns a copy of the container limit information of the limit that matches the parameters request |
Dictionary |
getDataFromLimit(SecurityLimit aLimit)
Returns the data item from the specified limit. |
java.lang.String |
getDataFromLimit(SecurityLimit aLimit,
java.lang.String key)
A security manager must define a method to return the named data item from the specified user. |
java.lang.String |
getDataFromUser(java.lang.String user,
java.lang.String key,
int id)
Return the value associated with the specified key for the specified user. |
Array |
getLimitsOfUser(java.lang.String userid)
Returns all limits of the specified user. |
Dictionary |
getTransactionLmt(SecurityLimit aLimit)
Returns a copy of the transaction limit information of aLimit |
Dictionary |
getTransactionLmt(java.lang.String userid,
java.lang.String curCode,
java.lang.String transType)
Returns a copy of the transaction limit information of the limit that matches the parameters request |
int |
getUserStatus(int id)
Return the status of the specified context. |
java.lang.String |
getValue(java.lang.String key,
int id)
Return the value associated with the specified key for this user. |
java.lang.Object |
initializeFrom(Tag aTag)
Actualizes all attributes that are defined in SGML file. |
void |
logOff(int id)
Log off the specified user. |
void |
logOff(java.lang.String userid,
java.lang.String password,
int options,
int[] contexts)
Logoff the specified contexts of the specified user. |
int |
logOn(java.lang.String user,
java.lang.String password)
Perform a logon. |
int |
logOn(java.lang.String userId,
java.lang.String password,
java.lang.Object object)
Perform a log on. |
void |
signOff(int id)
This method disables the user's current context. |
void |
signOn(java.lang.String userId,
java.lang.String password)
This method attempts to signon the user - raising an exception if it fails. |
void |
signOn(java.lang.String userId,
java.lang.String password,
int id)
This method attempts to signon the user - raising an exception if it fails. |
java.lang.String |
toString()
Returns the SGML representation. |
| Methods inherited from class com.ibm.dse.base.Service |
externalizer,
getExternalizer,
getTagName,
readExternal,
readExternal,
readObject,
removeExternal,
setExternalizer,
terminate,
toStrings,
toTags,
writeExternal,
writeExternal |
| Methods inherited from class com.ibm.dse.base.DSENotifier |
addHandler,
getHandlersList,
getName,
removeHandler,
setName,
signalEvent,
signalEvent,
signalEvent |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public SecurityAccessService()
public SecurityAccessService(java.lang.String aName)
throws java.io.IOException
aName - String - the name attribute.| Method Detail |
public boolean canLogOn(java.lang.String user,
java.lang.String password)
throws DSESecurityException
user - String - the user id.password - String - the password.
public boolean checkAccess(java.lang.String nameOfService,
int id)
throws DSESecurityException
nameOfService - String - the name of the service to check.id - int - the context id of the requestor.public static void debug()
public static void dump(java.lang.Throwable e,
java.lang.String s,
boolean raise)
throws DSESecurityException
e - Throwable - the exception to dump.s - String - the banner.raise - boolean - if true then raise the exception.
public void forcedSignOff(int signoffContext,
int callerContext)
throws DSESecurityException
signoffContext - int - the id of the context to sign off.callerContext - int - the id of the context of the caller.
public void forcedSignOn(java.lang.String userId,
java.lang.String password,
int id)
throws DSESecurityException
userId - String - your user id.password - String - your password.id - int - the context id of the other user.
public java.lang.String[] getActiveUsersFromGroup(java.lang.String aGroup,
int id)
throws DSESecurityException
aGroup - String - the name of the group.id - int - the context id of the requestor.
public java.lang.String[] getActiveUsersWithRight(java.lang.String aRight,
int id)
throws DSESecurityException
aRight - String - the name of the right.id - int - the context id of the requestor.
public java.lang.String[] getActiveUsersWithRole(java.lang.String aRole,
int id)
throws DSESecurityException
aRole - String - the name of the role.id - int - the context id of the requestor.
public Dictionary getContainerLmt(SecurityLimit aLimit)
throws DSESecurityException
aLimit - SecurityLimit - The limit to take container information from.
public Dictionary getContainerLmt(java.lang.String userid,
java.lang.String curCode,
java.lang.String containerType,
java.lang.String containerSubType)
throws DSESecurityException
userid - java.lang.String - The user the limit belongs to.curCode - java.lang.String - The currency Code of the limit.containerType - java.lang.String - The containerType of the limitcontainerSubType - java.lang.String - The containerSubType of the limit
public Dictionary getDataFromLimit(SecurityLimit aLimit)
throws DSESecurityException
aLimit - SecurityLimit- the limit to retrieve information from.
public java.lang.String getDataFromLimit(SecurityLimit aLimit,
java.lang.String key)
throws DSESecurityException
aLimit - SecurityLimit - the limit to retrieve information from .dataName - String - the name of the data item.
public java.lang.String getDataFromUser(java.lang.String user,
java.lang.String key,
int id)
throws DSESecurityException
user - String - the user id.key - String - the key to look up.id - int - the context id of the caller.
public Array getLimitsOfUser(java.lang.String userid)
throws DSESecurityException
userid - java.lang.String - the userid the limits belong to
public Dictionary getTransactionLmt(SecurityLimit aLimit)
throws DSESecurityException
aLimit - SecurityLimit - The limit to take transaction information from.
public Dictionary getTransactionLmt(java.lang.String userid,
java.lang.String curCode,
java.lang.String transType)
throws DSESecurityException
userid - java.lang.String - The user the limit belongs to.curCode - java.lang.String - The currency Code of the limit.transactionType - java.lang.String - The transactionType of the limit
public int getUserStatus(int id)
throws DSESecurityException
id - int - the context id to check.
public java.lang.String getValue(java.lang.String key,
int id)
throws DSESecurityException
key - String - the key to look up.id - int - the context id to check.
public java.lang.Object initializeFrom(Tag aTag)
throws DSESecurityException
aTag - com.ibm.dse.base.Tag
public void logOff(int id)
throws DSESecurityException
id - int - the context id of the requestor.
public void logOff(java.lang.String userid,
java.lang.String password,
int options,
int[] contexts)
throws DSESecurityException
userid - String - the user to be affected.password - String - the password of the specified user.options - int - the type of contexts to logoff.contexts - int[] - the list of specified contexts to logoff.
public int logOn(java.lang.String user,
java.lang.String password)
throws DSESecurityException
user - String - the name of the user to logon.password - String - the password.
public int logOn(java.lang.String userId,
java.lang.String password,
java.lang.Object object)
throws DSESecurityException
userId - String - the name of the user to log on.password - String - the password.object - Object - an arbitrary object which is passed on to the role handlers and interpreted there by custom code. The default code ignores it.
public void signOff(int id)
throws DSESecurityException
id - int - the context id of the requestor.
public void signOn(java.lang.String userId,
java.lang.String password)
throws DSESecurityException
userId - String - the user id.password - String - the password.
public void signOn(java.lang.String userId,
java.lang.String password,
int id)
throws DSESecurityException
userId - String - the user id.password - String - the password.id - int - the id of the context to signon.public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||