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.String
checkAuthenticationToken(String[] token)
X509Certificate
createCertificate(PublicKey certificateKey, PrivateKey signerKey)
List<String>
findIdentityProviders()
List<String>
findIdentityProviders(String url)
String
generateMetadata(String hostName)
com.soffid.iam.api.SamlRequest
generateSamlRequest(String hostName, String path)
SamlAssertionEntityDao
getAssertionDao()
com.soffid.iam.service.ConfigurationService
getConfigurationService()
SamlRequestEntityDao
getRequestDao()
void
setAssertionDao(SamlAssertionEntityDao assertionDao)
void
setConfigurationService(com.soffid.iam.service.ConfigurationService configurationService)
void
setRequestDao(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.MarshallingException
InvalidKeyException
KeyStoreException
NoSuchAlgorithmException
CertificateException
IllegalStateException
NoSuchProviderException
SignatureException
IOException
es.caib.seycon.ng.exception.InternalErrorException
TransformerConfigurationException
TransformerFactoryConfigurationError
TransformerException
-
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.InternalErrorException
net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.component.ComponentInitializationException
MalformedURLException
-
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.InternalErrorException
net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.component.ComponentInitializationException
MalformedURLException
-
-