|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
User account factory will handle authentication and retrieval of user account information from persistence storage.
| Method Summary | |
void |
deleteUserAccount(java.lang.String uniqueId)
Delete this user account from persistence storage |
IUserAccount |
getAuthenticatedUserAccount(java.util.Map credentials)
Authenticate the supplied credentials and returns user account object. |
IUserAccount |
getMutableUserAccount(java.lang.String uniqueId)
Gets an IUserAccount objects for a uniqueId of a user account. |
IUserAccount |
getUserAccount(java.util.Map credentials)
Return UserAccount object based on the credentials supplied. |
IUserAccount |
getUserAccount(java.lang.String uniqueId)
Gets UserAccount object from the database for a given uid |
IUserAccount |
getUserAccount(java.lang.String uniqueId,
AttributeList populateAttributes)
Gets the UserAccount object with the given unique ID and populates the attributes in populateAttributes |
IUserAccount |
getUserAccount(java.security.cert.X509Certificate cert)
Returns UserAccount to whom this certificate belongs. |
IUserAccount |
getUserAccountByLogonId(java.lang.String logonid)
Gets UserAccount object from the database for a given uid |
IUserAccount |
getUserAccountByLogonId(java.lang.String logonid,
AttributeList populateAttributes)
Gets UserAccount object from the database for a given uid |
IUserAccount[] |
getUserAccounts(java.lang.String uniqueIdOfUser)
Returns all user accounts of the given user |
IUserAccount[] |
getUserAccounts(java.lang.String uniqueIdOfUser,
AttributeList attributeList)
Returns all user accounts of the given user |
IUserAccountSearchFilter |
getUserAccountSearchFilter()
Returns an IUserAccountSearchFilter object to be used to specify query attributes |
void |
invalidateCacheEntry(java.lang.String uniqueid)
removes the user account object which has the specified uniqueid from the factory's cache Note: Use this method carefully, because calling it too often may cause performance problems |
void |
invalidateCacheEntryByLogonId(java.lang.String logonid)
removes the user account object which has the specified logonid from the factory's cache Note: Use this method carefully, because calling it too often may cause performance problems |
IUserAccount |
newUserAccount(java.lang.String logonid)
Creates a new IUserAccount type object. |
IUserAccount |
newUserAccount(java.lang.String logonid,
java.lang.String uniqueIdOfUser)
Creates a new IUserAccount type object. |
void |
registerListener(UserAccountListener userAccountListener,
int modifier)
registerListener allows to subscribe to a predefined eventName UserAccountListener
The caller has to provide a receiver object which implements UserAccountListener |
ISearchResult |
search(IUserAccountSearchFilter filter)
Search for user accounts in the persistence storage which match the criteria specified in the given search filter. |
void |
unregisterListener(UserAccountListener userAccountListener)
unregisterListener unsubscribes a receiver from a previously subscribed event. |
| Methods inherited from interface com.sap.security.api.IConfigurable |
initialize |
| Method Detail |
public IUserAccount newUserAccount(java.lang.String logonid,
java.lang.String uniqueIdOfUser)
throws UMException
IPrincipalMaint.commit().logonid - logon user id
Note: The logonid has to be unique for ALL data stores
uniqueIdOfUser - - uniqueID of the user that should be assigned to this accountUserAccountAlreadyExistsException - if an account with this logonid
already exists
public IUserAccount newUserAccount(java.lang.String logonid)
throws UMException
IPrincipalMaint.commit().logonid - logon user id
Note: The logonid has to be unique for ALL data stores
UserAccountAlreadyExistsException - if an account with this logonid
already exists
public IUserAccount getUserAccountByLogonId(java.lang.String logonid)
throws UMException
logonid - Description of ParameterUMException - Exception will be thrown if there is an
error.
public IUserAccount getUserAccountByLogonId(java.lang.String logonid,
AttributeList populateAttributes)
throws UMException
logonid - Description of ParameterpopulateAttributes - The attributes that should be populatedUMException - Exception will be thrown if there is an
error.
public IUserAccount getUserAccount(java.lang.String uniqueId)
throws UMException
uniqueId - Description of ParameterUMException - Exception will be thrown if there is an
error.
public IUserAccount getUserAccount(java.lang.String uniqueId,
AttributeList populateAttributes)
throws UMException
populateAttributes - The attributes that should be populated
Note: in case only attribute
ILoginConstants.LOGON_UID_ALIAS
is specified the existence of the returned IUserAccount object
may not be checked which may lead to following RuntimeException
PrincipalNotAccessibleException
if other attributes of this IUserAccount object are
accessed.
NoSuchUserAccountException - if no userAccount with the
given unique ID exists
public IUserAccount getUserAccount(java.security.cert.X509Certificate cert)
throws java.security.cert.CertificateException,
UMException,
TicketException
cert - X509Certificate certificatejava.security.cert.CertificateException - if there is a problem with the input
certificateUMException - Exception will be throws if there is an
error.NoSuchUserAccountException - if no userAccount is mapped to the certificate
public IUserAccount getAuthenticatedUserAccount(java.util.Map credentials)
throws UMException,
AuthenticationFailedException,
UserLockedException,
TicketException,
java.security.cert.CertificateException
credentials - Map containing user credential
parametersUMException - Exception will be throws if there
is an error.AuthenticationFailedException - Exception will be throws if
credentials could not be verified.
The message of the exception is the key for the error message.UserLockedException - Exception will be throws if user
is locked.
The message of the exception is the key for the error message.java.security.cert.CertificateException - a problem with certificates.
public IUserAccount getUserAccount(java.util.Map credentials)
throws UMException,
java.security.cert.CertificateException
credentials - user credentialsUMException - Description of Exception
public void deleteUserAccount(java.lang.String uniqueId)
throws UMException
account - user accountUMException - UMException is thrown
is delete operation is failed for some reasonNoSuchUserAccountException - if the user account does not exist
public ISearchResult search(IUserAccountSearchFilter filter)
throws UMException
getUserAccountSearchFilter().
You can define a search filter using methods of class IUserAccountSearchFilter.filter - defined to search for user accountsISearchResult
public IUserAccount[] getUserAccounts(java.lang.String uniqueIdOfUser)
throws UMException
user - The userUMException - Description of Exception
public IUserAccount[] getUserAccounts(java.lang.String uniqueIdOfUser,
AttributeList attributeList)
throws UMException
user - The userattributeList - The attributes that should be populatedUMException - Description of Exception
public IUserAccount getMutableUserAccount(java.lang.String uniqueId)
throws UMException
uniqueId - - uniqueId of the user accountNoSuchPrincipalException - if the unique ID does not exist
public IUserAccountSearchFilter getUserAccountSearchFilter()
throws UMException
IUserAccountSearchFilter only contains attributes which will be queried
UMException - FeatureNotAvailableException -
public void registerListener(UserAccountListener userAccountListener,
int modifier)
UserAccountListener
The caller has to provide a receiver object which implements UserAccountListeneruserAccountListener - object which implements interface UserAccountListenermodifier - constant defined in UserAccountListenerpublic void unregisterListener(UserAccountListener userAccountListener)
userAccountListener - object which implements interface UserAccountListener
public void invalidateCacheEntryByLogonId(java.lang.String logonid)
throws UMException
logonid - the logonid of the user accountUMException - if a error occurs
public void invalidateCacheEntry(java.lang.String uniqueid)
throws UMException
uniqueid - the uniqueid of the user accountUMException - if a error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||