Package com.soffid.iam.service.saml
Class SAMLServiceInternal
- java.lang.Object
-
- com.soffid.iam.service.saml.SAMLServiceInternal
-
public class SAMLServiceInternal extends Object
-
-
Constructor Summary
Constructors Constructor Description SAMLServiceInternal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]authenticate(String hostName, String path, String protocol, Map<String,String> response)protected <T extends org.opensaml.core.xml.XMLObject>
TbuildXMLObject(QName name)Builds the requested XMLObject.StringcheckAuthenticationToken(String[] token)X509CertificatecreateCertificate(PublicKey certificateKey, PrivateKey signerKey)List<String>findIdentityProviders()List<String>findIdentityProviders(String url)StringgenerateMetadata(String hostName)com.soffid.iam.api.SamlRequestgenerateSamlRequest(String hostName, String path)SamlAssertionEntityDaogetAssertionDao()com.soffid.iam.service.ConfigurationServicegetConfigurationService()SamlRequestEntityDaogetRequestDao()voidsetAssertionDao(SamlAssertionEntityDao assertionDao)voidsetConfigurationService(com.soffid.iam.service.ConfigurationService configurationService)voidsetRequestDao(SamlRequestEntityDao requestDao)
-
-
-
Method Detail
-
getConfigurationService
public com.soffid.iam.service.ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(com.soffid.iam.service.ConfigurationService configurationService)
-
getAssertionDao
public SamlAssertionEntityDao getAssertionDao()
-
setAssertionDao
public void setAssertionDao(SamlAssertionEntityDao assertionDao)
-
getRequestDao
public SamlRequestEntityDao getRequestDao()
-
setRequestDao
public void setRequestDao(SamlRequestEntityDao requestDao)
-
authenticate
public String[] authenticate(String hostName, String path, String protocol, Map<String,String> response) throws Exception
- Throws:
Exception
-
generateMetadata
public String generateMetadata(String hostName) throws org.opensaml.core.xml.io.MarshallingException, InvalidKeyException, KeyStoreException, NoSuchAlgorithmException, CertificateException, IllegalStateException, NoSuchProviderException, SignatureException, IOException, es.caib.seycon.ng.exception.InternalErrorException, TransformerConfigurationException, TransformerFactoryConfigurationError, TransformerException
- Throws:
org.opensaml.core.xml.io.MarshallingExceptionInvalidKeyExceptionKeyStoreExceptionNoSuchAlgorithmExceptionCertificateExceptionIllegalStateExceptionNoSuchProviderExceptionSignatureExceptionIOExceptiones.caib.seycon.ng.exception.InternalErrorExceptionTransformerConfigurationExceptionTransformerFactoryConfigurationErrorTransformerException
-
generateSamlRequest
public com.soffid.iam.api.SamlRequest generateSamlRequest(String hostName, String path) throws es.caib.seycon.ng.exception.InternalErrorException
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
buildXMLObject
protected <T extends org.opensaml.core.xml.XMLObject> T buildXMLObject(QName name)
Builds the requested XMLObject.- Parameters:
name- name of the XMLObject- Returns:
- the build XMLObject
-
createCertificate
public X509Certificate createCertificate(PublicKey certificateKey, PrivateKey signerKey) throws CertificateEncodingException, InvalidKeyException, IllegalStateException, NoSuchProviderException, NoSuchAlgorithmException, SignatureException
-
findIdentityProviders
public List<String> findIdentityProviders() throws es.caib.seycon.ng.exception.InternalErrorException, net.shibboleth.utilities.java.support.resolver.ResolverException, net.shibboleth.utilities.java.support.component.ComponentInitializationException, MalformedURLException
- Throws:
es.caib.seycon.ng.exception.InternalErrorExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionMalformedURLException
-
findIdentityProviders
public List<String> findIdentityProviders(String url) throws es.caib.seycon.ng.exception.InternalErrorException, net.shibboleth.utilities.java.support.resolver.ResolverException, net.shibboleth.utilities.java.support.component.ComponentInitializationException, MalformedURLException
- Throws:
es.caib.seycon.ng.exception.InternalErrorExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionMalformedURLException
-
-