Package com.soffid.iam.service
Class SamlServiceBase
- java.lang.Object
-
- com.soffid.iam.service.SamlServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.SamlService
- Direct Known Subclasses:
SamlServiceImpl
public abstract class SamlServiceBase extends Object implements com.soffid.iam.service.SamlService
Spring Service base class for
see com.soffid.iam.service.SamlServicecom.soffid.iam.service.SamlService, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description SamlServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String[]authenticate(String hostName, String app, String protocol, Map<String,String> response)StringcheckAuthenticationToken(String[] token)List<String>findIdentityProviders()List<String>findIdentityProviders(String url)StringgenerateMetadata(String hostName)com.soffid.iam.api.SamlRequestgenerateSamlRequest(String hostName, String app)com.soffid.iam.service.ConfigurationServicegetConfigurationService()Gets reference toconfiguracioService.protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.SamlAssertionEntityDaogetSamlAssertionEntityDao()Gets reference tosamlAssertionEntityDao.SamlRequestEntityDaogetSamlRequestEntityDao()Gets reference tosamlRequestEntityDao.protected abstract String[]handleAuthenticate(String hostName, String app, String protocol, Map<String,String> response)protected abstract StringhandleCheckAuthenticationToken(String[] token)protected abstract List<String>handleFindIdentityProviders()protected abstract List<String>handleFindIdentityProviders(String url)protected abstract StringhandleGenerateMetadata(String hostName)protected abstract com.soffid.iam.api.SamlRequesthandleGenerateSamlRequest(String hostName, String app)voidsetConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)Sets reference toconfiguracioService.voidsetSamlAssertionEntityDao(SamlAssertionEntityDao samlAssertionEntityDao)Sets reference tosamlAssertionEntityDao.voidsetSamlRequestEntityDao(SamlRequestEntityDao samlRequestEntityDao)Sets reference tosamlRequestEntityDao.
-
-
-
Method Detail
-
setConfigurationService
public void setConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)
Sets reference toconfiguracioService.
-
getConfigurationService
public com.soffid.iam.service.ConfigurationService getConfigurationService()
Gets reference toconfiguracioService.
-
setSamlAssertionEntityDao
public void setSamlAssertionEntityDao(SamlAssertionEntityDao samlAssertionEntityDao)
Sets reference tosamlAssertionEntityDao.
-
getSamlAssertionEntityDao
public SamlAssertionEntityDao getSamlAssertionEntityDao()
Gets reference tosamlAssertionEntityDao.
-
setSamlRequestEntityDao
public void setSamlRequestEntityDao(SamlRequestEntityDao samlRequestEntityDao)
Sets reference tosamlRequestEntityDao.
-
getSamlRequestEntityDao
public SamlRequestEntityDao getSamlRequestEntityDao()
Gets reference tosamlRequestEntityDao.
-
generateSamlRequest
@Transactional(rollbackFor=java.lang.Exception.class) 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.SamlService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGenerateSamlRequest
protected abstract com.soffid.iam.api.SamlRequest handleGenerateSamlRequest(String hostName, String app) throws Exception
- Throws:
Exception
-
checkAuthenticationToken
@Transactional(rollbackFor=java.lang.Exception.class) public String checkAuthenticationToken(String[] token) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
checkAuthenticationTokenin interfacecom.soffid.iam.service.SamlService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCheckAuthenticationToken
protected abstract String handleCheckAuthenticationToken(String[] token) throws Exception
- Throws:
Exception
-
generateMetadata
@Transactional(rollbackFor=java.lang.Exception.class) public String generateMetadata(String hostName) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
generateMetadatain interfacecom.soffid.iam.service.SamlService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGenerateMetadata
protected abstract String handleGenerateMetadata(String hostName) throws Exception
- Throws:
Exception
-
authenticate
@Transactional(rollbackFor=java.lang.Exception.class) 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.SamlService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleAuthenticate
protected abstract String[] handleAuthenticate(String hostName, String app, String protocol, Map<String,String> response) throws Exception
- Throws:
Exception
-
findIdentityProviders
@Transactional(rollbackFor=java.lang.Exception.class) public List<String> findIdentityProviders() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findIdentityProvidersin interfacecom.soffid.iam.service.SamlService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindIdentityProviders
protected abstract List<String> handleFindIdentityProviders() throws Exception
- Throws:
Exception
-
findIdentityProviders
@Transactional(rollbackFor=java.lang.Exception.class) public List<String> findIdentityProviders(String url) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findIdentityProvidersin interfacecom.soffid.iam.service.SamlService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindIdentityProviders
protected abstract List<String> handleFindIdentityProviders(String url) throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-