Package com.soffid.iam.service.ejb
Class SamlServiceBean
- java.lang.Object
-
- org.springframework.ejb.support.AbstractStatelessSessionBean
-
- com.soffid.iam.service.ejb.SamlServiceBean
-
- All Implemented Interfaces:
com.soffid.iam.service.ejb.SamlService,Serializable,javax.ejb.EnterpriseBean,javax.ejb.SessionBean,org.springframework.ejb.support.SmartSessionBean
public class SamlServiceBean extends org.springframework.ejb.support.AbstractStatelessSessionBean implements com.soffid.iam.service.ejb.SamlService- See Also:
com.soffid.iam.service.SamlService,,com.soffid.iam.service.SamlService,, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringBEAN_FACTORY_PATH_ENVIRONMENT_KEY
-
Constructor Summary
Constructors Constructor Description SamlServiceBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]authenticate(String hostName, String app, String protocol, Map<String,String> response)StringcheckAuthenticationToken(String[] token)voidejbCreate()Initizlizes beenvoidejbRemove()List<String>findIdentityProviders()List<String>findIdentityProviders(String url)StringgenerateMetadata(String hostName)com.soffid.iam.api.SamlRequestgenerateSamlRequest(String hostName, String app)protected org.springframework.beans.factory.BeanFactorygetBeanFactory()javax.ejb.SessionContextgetSessionContext()protected voidonEjbCreate()protected voidonEjbRemove()voidsetBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)voidsetBeanFactoryLocatorKey(String arg0)voidsetSessionContext(javax.ejb.SessionContext sessionContext)Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.-
Methods inherited from class org.springframework.ejb.support.AbstractStatelessSessionBean
ejbActivate, ejbPassivate
-
-
-
-
Field Detail
-
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
public static final String BEAN_FACTORY_PATH_ENVIRONMENT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
generateSamlRequest
@PermitAll public com.soffid.iam.api.SamlRequest generateSamlRequest(String hostName, String app) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
generateSamlRequestin interfacecom.soffid.iam.service.ejb.SamlService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
checkAuthenticationToken
@PermitAll public String checkAuthenticationToken(String[] token) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
checkAuthenticationTokenin interfacecom.soffid.iam.service.ejb.SamlService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
generateMetadata
@PermitAll public String generateMetadata(String hostName) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
generateMetadatain interfacecom.soffid.iam.service.ejb.SamlService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
authenticate
@PermitAll public String[] authenticate(String hostName, String app, String protocol, Map<String,String> response) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
authenticatein interfacecom.soffid.iam.service.ejb.SamlService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findIdentityProviders
@PermitAll public List<String> findIdentityProviders() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findIdentityProvidersin interfacecom.soffid.iam.service.ejb.SamlService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findIdentityProviders
@PermitAll public List<String> findIdentityProviders(String url) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findIdentityProvidersin interfacecom.soffid.iam.service.ejb.SamlService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
ejbCreate
@PostConstruct public void ejbCreate() throws javax.ejb.CreateException
Initizlizes been- Overrides:
ejbCreatein classorg.springframework.ejb.support.AbstractStatelessSessionBean- Throws:
javax.ejb.CreateException- See Also:
AbstractStatelessSessionBean.onEjbCreate()
-
onEjbCreate
protected void onEjbCreate()
- Specified by:
onEjbCreatein classorg.springframework.ejb.support.AbstractStatelessSessionBean
-
setSessionContext
public void setSessionContext(javax.ejb.SessionContext sessionContext)
Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.- Specified by:
setSessionContextin interfacejavax.ejb.SessionBean- See Also:
SessionBean.setSessionContext(javax.ejb.SessionContext)
-
getSessionContext
public final javax.ejb.SessionContext getSessionContext()
- Specified by:
getSessionContextin interfaceorg.springframework.ejb.support.SmartSessionBean
-
setBeanFactoryLocator
public void setBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
-
setBeanFactoryLocatorKey
public void setBeanFactoryLocatorKey(String arg0)
-
getBeanFactory
protected org.springframework.beans.factory.BeanFactory getBeanFactory()
-
ejbRemove
public void ejbRemove()
-
onEjbRemove
protected void onEjbRemove()
-
-