Class 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 com.soffid.iam.service.SamlService, provides access to all services and entities referenced by this service.

    see com.soffid.iam.service.SamlService
    • Constructor Detail

      • SamlServiceBase

        public SamlServiceBase()
    • Method Detail

      • setConfigurationService

        public void setConfigurationService​(com.soffid.iam.service.ConfigurationService configuracioService)
        Sets reference to configuracioService.
      • getConfigurationService

        public com.soffid.iam.service.ConfigurationService getConfigurationService()
        Gets reference to configuracioService.
      • setSamlAssertionEntityDao

        public void setSamlAssertionEntityDao​(SamlAssertionEntityDao samlAssertionEntityDao)
        Sets reference to samlAssertionEntityDao.
      • getSamlAssertionEntityDao

        public SamlAssertionEntityDao getSamlAssertionEntityDao()
        Gets reference to samlAssertionEntityDao.
      • setSamlRequestEntityDao

        public void setSamlRequestEntityDao​(SamlRequestEntityDao samlRequestEntityDao)
        Sets reference to samlRequestEntityDao.
      • getSamlRequestEntityDao

        public SamlRequestEntityDao getSamlRequestEntityDao()
        Gets reference to samlRequestEntityDao.
      • 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 interface com.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 interface com.soffid.iam.service.SamlService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • generateMetadata

        @Transactional(rollbackFor=java.lang.Exception.class)
        public String generateMetadata​(String hostName)
                                throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        generateMetadata in interface com.soffid.iam.service.SamlService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • 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 interface com.soffid.iam.service.SamlService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findIdentityProviders

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<String> findIdentityProviders()
                                           throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findIdentityProviders in interface com.soffid.iam.service.SamlService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findIdentityProviders

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<String> findIdentityProviders​(String url)
                                           throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findIdentityProviders in interface com.soffid.iam.service.SamlService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getPrincipal

        protected Principal getPrincipal()
        Gets the current principal if one has been set, otherwise returns null.
        Returns:
        the current principal