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)
String
checkAuthenticationToken(String[] token)
List<String>
findIdentityProviders()
List<String>
findIdentityProviders(String url)
String
generateMetadata(String hostName)
com.soffid.iam.api.SamlRequest
generateSamlRequest(String hostName, String app)
com.soffid.iam.service.ConfigurationService
getConfigurationService()
Gets reference toconfiguracioService
.protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.SamlAssertionEntityDao
getSamlAssertionEntityDao()
Gets reference tosamlAssertionEntityDao
.SamlRequestEntityDao
getSamlRequestEntityDao()
Gets reference tosamlRequestEntityDao
.protected abstract String[]
handleAuthenticate(String hostName, String app, String protocol, Map<String,String> response)
protected abstract String
handleCheckAuthenticationToken(String[] token)
protected abstract List<String>
handleFindIdentityProviders()
protected abstract List<String>
handleFindIdentityProviders(String url)
protected abstract String
handleGenerateMetadata(String hostName)
protected abstract com.soffid.iam.api.SamlRequest
handleGenerateSamlRequest(String hostName, String app)
void
setConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)
Sets reference toconfiguracioService
.void
setSamlAssertionEntityDao(SamlAssertionEntityDao samlAssertionEntityDao)
Sets reference tosamlAssertionEntityDao
.void
setSamlRequestEntityDao(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:
generateSamlRequest
in 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:
checkAuthenticationToken
in 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:
generateMetadata
in 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:
authenticate
in 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:
findIdentityProviders
in 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:
findIdentityProviders
in 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 currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-