|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SecurityServiceItf
An interface defines the generic properties of a security service object.
Method Summary | |
---|---|
boolean |
authenticateUser(java.lang.String loginName,
java.lang.String passwd)
Returns the result of the user authentication. |
boolean |
authorizeUser(Role[] roles,
java.lang.String applicationName,
java.lang.String objectId,
java.lang.String attribute)
Returns the roles' access permission to a protection element. |
boolean |
authorizeUser(java.lang.String loginName,
Role[] roles,
java.lang.String applicationName,
java.lang.String objectId,
java.lang.String attribute)
Returns the given user or role's access permission to a protection element. |
java.lang.String |
getEmail(java.lang.String loginName)
The email address associated with the login name. |
Role[] |
getRole(java.lang.String loginName,
java.lang.String passwd)
Returns an array of Role objects associated with the loginName/passwd. |
Method Detail |
---|
boolean authenticateUser(java.lang.String loginName, java.lang.String passwd)
loginName
- the login name of the userpasswd
- the password of the user
Role[] getRole(java.lang.String loginName, java.lang.String passwd)
loginName
- the login name of the userpasswd
- the password of the user
boolean authorizeUser(java.lang.String loginName, Role[] roles, java.lang.String applicationName, java.lang.String objectId, java.lang.String attribute)
loginName
- login name used to check if this is the owner of the protection elementroles,
- an array of Role that the user hasapplicationName
- application nameobjectId
- object Idattribute
- attribute
boolean authorizeUser(Role[] roles, java.lang.String applicationName, java.lang.String objectId, java.lang.String attribute)
roles,
- an array of Role that the user hasapplicationName
- application nameobjectId
- object Idattribute
- attribute
java.lang.String getEmail(java.lang.String loginName)
loginName
- the login name of the user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |