com.retek.rsm.app.security.service.impl
Class SecurityServiceEjb

java.lang.Object
  extended bycom.retek.rsm.app.common.service.AbstractRsmServiceEjb
      extended bycom.retek.rsm.app.security.service.impl.SecurityServiceEjb
All Implemented Interfaces:
javax.ejb.EnterpriseBean, SecurityService, java.io.Serializable, com.retek.platform.service.Service, javax.ejb.SessionBean

public class SecurityServiceEjb
extends AbstractRsmServiceEjb
implements SecurityService

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.retek.rsm.app.common.service.AbstractRsmServiceEjb
LOG
 
Fields inherited from interface com.retek.rsm.app.security.service.SecurityService
serialVersionUID
 
Constructor Summary
SecurityServiceEjb()
           
 
Method Summary
 void authenticate(com.retek.platform.service.ClientContext context, java.lang.String userName, EncryptedTextVo encryptedPassword)
          Authenticate a username and encrypted password against a system defined service.
 void authenticate(com.retek.platform.service.ClientContext context, java.lang.String userName, com.retek.platform.util.type.security.UserSignature signature)
          Authenticate a userSignature.
 void ejbCreate()
           
 java.util.Map findDataPermissions(com.retek.platform.service.ClientContext clientContext, java.util.Set userVos, com.retek.platform.app.security.service.Application application)
          Retrieve a map of users to data permissions.
 java.util.Set findUserVos(com.retek.platform.service.ClientContext context, UserSearchCriteria criteria)
          Find a collection of users based on the UserSearchCriteria.
 java.util.Set findUserVosWithPermissions(com.retek.platform.service.ClientContext context, java.util.Set permissions, com.retek.platform.app.security.service.Application application)
          Retrieve a set of users given a set of permissions
 boolean isUserNameValid(com.retek.platform.service.ClientContext context, java.lang.String userName)
          Validates that the userName is a valid user name on the authentication system.
 LoginCredentialsVo login(com.retek.platform.service.ClientContext context, java.lang.String userName, EncryptedTextVo encryptedPassword, com.retek.platform.app.security.service.Application application, PublicKeyEncryptionStrategyVo appLaunchParameterPasswordKey)
          Authenticate a username and enrypted password against a system defined service and retrieve user information.
 LoginCredentialsVo login(com.retek.platform.service.ClientContext context, java.lang.String userName, com.retek.platform.util.type.security.UserSignature signature, com.retek.platform.app.security.service.Application application)
          Authenticate a username and signature and retrieve user information.
 LoginCredentialsWithContentModelVo loginAndGetContentModel(com.retek.platform.service.ClientContext context, java.lang.String userName, EncryptedTextVo encryptedPassword, com.retek.platform.app.security.service.Application application)
          Authenticate a username and encrypted password, retrieve user information and fetch the secure content model.
 LoginCredentialsWithContentModelVo loginAndGetContentModel(com.retek.platform.service.ClientContext context, java.lang.String userName, com.retek.platform.util.type.security.UserSignature signature, com.retek.platform.app.security.service.Application application)
          Authenticate a username and signature, retrieve user information and fetch the secure content model.
 PublicKeyEncryptionStrategyVo retrievePublicKeyEncryptionStrategy(com.retek.platform.service.ClientContext context)
          Gets the public key encryption strategy value object.
 
Methods inherited from class com.retek.rsm.app.common.service.AbstractRsmServiceEjb
attachFallbackHandler, deleteReferences, destroyServiceContext, discardServiceContext, ejbActivate, ejbPassivate, ejbRemove, getFactory, getLocal, getLocalHome, getNextReference, getRemote, getRemoteHome, getSessionContext, initServiceContext, setSessionContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.retek.platform.service.Service
attachFallbackHandler
 

Constructor Detail

SecurityServiceEjb

public SecurityServiceEjb()
Method Detail

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
Throws:
javax.ejb.CreateException

authenticate

public void authenticate(com.retek.platform.service.ClientContext context,
                         java.lang.String userName,
                         EncryptedTextVo encryptedPassword)
                  throws AuthenticationFailedException
Description copied from interface: SecurityService
Authenticate a username and encrypted password against a system defined service.

Specified by:
authenticate in interface SecurityService
Throws:
AuthenticationFailedException

authenticate

public void authenticate(com.retek.platform.service.ClientContext context,
                         java.lang.String userName,
                         com.retek.platform.util.type.security.UserSignature signature)
                  throws AuthenticationFailedException
Description copied from interface: SecurityService
Authenticate a userSignature.

Specified by:
authenticate in interface SecurityService
Throws:
AuthenticationFailedException

login

public LoginCredentialsVo login(com.retek.platform.service.ClientContext context,
                                java.lang.String userName,
                                com.retek.platform.util.type.security.UserSignature signature,
                                com.retek.platform.app.security.service.Application application)
                         throws AuthenticationFailedException
Description copied from interface: SecurityService
Authenticate a username and signature and retrieve user information.

Specified by:
login in interface SecurityService
Parameters:
application - - The user will contain the permissions for the specified application.
Returns:
LoginCredentialsVo - Contains user information.
Throws:
AuthenticationFailedException

login

public LoginCredentialsVo login(com.retek.platform.service.ClientContext context,
                                java.lang.String userName,
                                EncryptedTextVo encryptedPassword,
                                com.retek.platform.app.security.service.Application application,
                                PublicKeyEncryptionStrategyVo appLaunchParameterPasswordKey)
                         throws AuthenticationFailedException
Description copied from interface: SecurityService
Authenticate a username and enrypted password against a system defined service and retrieve user information.

Specified by:
login in interface SecurityService
Parameters:
application - - The user will contain the permissions for the specified application.
Returns:
LoginCredentialsVo - Contains user information.
Throws:
AuthenticationFailedException

loginAndGetContentModel

public LoginCredentialsWithContentModelVo loginAndGetContentModel(com.retek.platform.service.ClientContext context,
                                                                  java.lang.String userName,
                                                                  EncryptedTextVo encryptedPassword,
                                                                  com.retek.platform.app.security.service.Application application)
                                                           throws AuthenticationFailedException
Description copied from interface: SecurityService
Authenticate a username and encrypted password, retrieve user information and fetch the secure content model.

Specified by:
loginAndGetContentModel in interface SecurityService
Parameters:
application - - The user will contain the permissions for the specified application.
Returns:
LoginCredentialsWithContentModelVo - Contains user and screen information.
Throws:
AuthenticationFailedException

loginAndGetContentModel

public LoginCredentialsWithContentModelVo loginAndGetContentModel(com.retek.platform.service.ClientContext context,
                                                                  java.lang.String userName,
                                                                  com.retek.platform.util.type.security.UserSignature signature,
                                                                  com.retek.platform.app.security.service.Application application)
                                                           throws AuthenticationFailedException
Description copied from interface: SecurityService
Authenticate a username and signature, retrieve user information and fetch the secure content model.

Specified by:
loginAndGetContentModel in interface SecurityService
Parameters:
application - - The user will contain the permissions for the specified application.
Returns:
LoginCredentialsWithContentModelVo - Contains user and screen information.
Throws:
AuthenticationFailedException

isUserNameValid

public boolean isUserNameValid(com.retek.platform.service.ClientContext context,
                               java.lang.String userName)
Description copied from interface: SecurityService
Validates that the userName is a valid user name on the authentication system.

Specified by:
isUserNameValid in interface SecurityService

retrievePublicKeyEncryptionStrategy

public PublicKeyEncryptionStrategyVo retrievePublicKeyEncryptionStrategy(com.retek.platform.service.ClientContext context)
Description copied from interface: SecurityService
Gets the public key encryption strategy value object.

Specified by:
retrievePublicKeyEncryptionStrategy in interface SecurityService

findUserVos

public java.util.Set findUserVos(com.retek.platform.service.ClientContext context,
                                 UserSearchCriteria criteria)
                          throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityService
Find a collection of users based on the UserSearchCriteria.

Specified by:
findUserVos in interface SecurityService
Throws:
com.retek.platform.exception.RetekBusinessException

findUserVosWithPermissions

public java.util.Set findUserVosWithPermissions(com.retek.platform.service.ClientContext context,
                                                java.util.Set permissions,
                                                com.retek.platform.app.security.service.Application application)
                                         throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityService
Retrieve a set of users given a set of permissions

Specified by:
findUserVosWithPermissions in interface SecurityService
Parameters:
permissions - - A collection of Strings (permission names)
application - - The application associated with the passed in permissions
Returns:
Set - A Set of UserVo objects.
Throws:
com.retek.platform.exception.RetekBusinessException

findDataPermissions

public java.util.Map findDataPermissions(com.retek.platform.service.ClientContext clientContext,
                                         java.util.Set userVos,
                                         com.retek.platform.app.security.service.Application application)
                                  throws com.retek.platform.exception.RetekBusinessException
Description copied from interface: SecurityService
Retrieve a map of users to data permissions. Keys are UserVo objects. Value objects are Sets of IdentifiableReferences.

Specified by:
findDataPermissions in interface SecurityService
Parameters:
userVos - - A set of UserVo objects
application - - The application associated with the passed in permissions
Returns:
Map - A Map of UserVo keys to Sets of IdentifiableReferences.
Throws:
com.retek.platform.exception.RetekBusinessException