public class SAMLMetadataSignatureSigningParametersResolverTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private BasicSignatureSigningConfiguration |
config1 |
private BasicSignatureSigningConfiguration |
config2 |
private BasicSignatureSigningConfiguration |
config3 |
private org.opensaml.xmlsec.criterion.SignatureSigningConfigurationCriterion |
configCriterion |
private net.shibboleth.utilities.java.support.resolver.CriteriaSet |
criteriaSet |
private String |
defaultC14N |
private String |
defaultDSAAlgo |
private String |
defaultECAlgo |
private String |
defaultHMACAlgo |
private Integer |
defaultHMACOutputLength |
private NamedKeyInfoGeneratorManager |
defaultKeyInfoGeneratorManager |
private String |
defaultReferenceDigest |
private String |
defaultRSAAlgo |
private org.opensaml.security.credential.Credential |
dsaCred |
private org.opensaml.security.credential.Credential |
ecCred |
private org.opensaml.security.credential.Credential |
hmacCred |
private org.opensaml.saml.security.impl.SAMLMetadataSignatureSigningParametersResolver |
resolver |
private org.opensaml.saml.saml2.metadata.RoleDescriptor |
roleDesc |
private org.opensaml.saml.criterion.RoleDescriptorCriterion |
roleDescCriterion |
private org.opensaml.security.credential.Credential |
rsaCred1024 |
private org.opensaml.security.credential.Credential |
rsaCred2048 |
private org.opensaml.security.credential.Credential |
rsaCred4096 |
private String |
targetEntityID |
| Constructor and Description |
|---|
SAMLMetadataSignatureSigningParametersResolverTest() |
| Modifier and Type | Method and Description |
|---|---|
private void |
addEntityDescriptorExtension(org.opensaml.saml.saml2.metadata.RoleDescriptor roleDescriptor,
org.opensaml.core.xml.XMLObject extension) |
private void |
addRoleDescriptorExtension(org.opensaml.saml.saml2.metadata.RoleDescriptor roleDescriptor,
org.opensaml.core.xml.XMLObject extension) |
void |
buildCredentials() |
private org.opensaml.saml.ext.saml2alg.DigestMethod |
buildDigestMethod(String algorithm) |
private org.opensaml.saml.saml2.metadata.Extensions |
buildExtensions() |
private org.opensaml.saml.saml2.metadata.RoleDescriptor |
buildRoleDescriptorSkeleton() |
private org.opensaml.saml.ext.saml2alg.SigningMethod |
buildSigningMethod(String algorithm,
Integer minKeySize,
Integer maxKeySize) |
void |
setUp() |
void |
testAbsentCriterion() |
void |
testBasicRSA() |
void |
testECWithSigningMethodWhitelisted() |
void |
testMultipleCredsWithSigningMethodSelection() |
void |
testNoAlgorithms() |
void |
testNoC14NAlgorithm() |
void |
testNoCredentials() |
void |
testNoReferenceDigestMethods() |
void |
testNullCriteriaSet() |
void |
testRSAMaxKeyLength() |
void |
testRSAMinKeyLength() |
void |
testRSAWithDigestMethodBlacklisted() |
void |
testRSAWithEntityDescriptorDigestMethod() |
void |
testRSAWithEntityDescriptorSigningMethod() |
void |
testRSAWithRoleDescriptorDigestMethod() |
void |
testRSAWithRoleDescriptorSigningMethod() |
void |
testRSAWithSigningMethodBlacklisted() |
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElementprivate org.opensaml.saml.security.impl.SAMLMetadataSignatureSigningParametersResolver resolver
private net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet
private org.opensaml.xmlsec.criterion.SignatureSigningConfigurationCriterion configCriterion
private BasicSignatureSigningConfiguration config1
private BasicSignatureSigningConfiguration config2
private BasicSignatureSigningConfiguration config3
private org.opensaml.security.credential.Credential rsaCred1024
private org.opensaml.security.credential.Credential rsaCred2048
private org.opensaml.security.credential.Credential rsaCred4096
private org.opensaml.security.credential.Credential dsaCred
private org.opensaml.security.credential.Credential ecCred
private org.opensaml.security.credential.Credential hmacCred
private String defaultReferenceDigest
private String defaultC14N
private String defaultRSAAlgo
private String defaultDSAAlgo
private String defaultECAlgo
private String defaultHMACAlgo
private Integer defaultHMACOutputLength
private NamedKeyInfoGeneratorManager defaultKeyInfoGeneratorManager
private org.opensaml.saml.criterion.RoleDescriptorCriterion roleDescCriterion
private org.opensaml.saml.saml2.metadata.RoleDescriptor roleDesc
private String targetEntityID
public SAMLMetadataSignatureSigningParametersResolverTest()
public void buildCredentials()
throws NoSuchAlgorithmException,
NoSuchProviderException
public void setUp()
public void testBasicRSA()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testRSAWithRoleDescriptorSigningMethod()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testRSAWithEntityDescriptorSigningMethod()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testRSAWithRoleDescriptorDigestMethod()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testRSAWithEntityDescriptorDigestMethod()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testRSAWithSigningMethodBlacklisted()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testRSAWithDigestMethodBlacklisted()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testECWithSigningMethodWhitelisted()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testMultipleCredsWithSigningMethodSelection()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testRSAMinKeyLength()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testRSAMaxKeyLength()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testNoCredentials()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testNoAlgorithms()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testNoReferenceDigestMethods()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testNoC14NAlgorithm()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testNullCriteriaSet()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testAbsentCriterion()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionprivate org.opensaml.saml.saml2.metadata.RoleDescriptor buildRoleDescriptorSkeleton()
private org.opensaml.saml.ext.saml2alg.SigningMethod buildSigningMethod(String algorithm, Integer minKeySize, Integer maxKeySize)
private org.opensaml.saml.ext.saml2alg.DigestMethod buildDigestMethod(String algorithm)
private void addRoleDescriptorExtension(org.opensaml.saml.saml2.metadata.RoleDescriptor roleDescriptor,
org.opensaml.core.xml.XMLObject extension)
private void addEntityDescriptorExtension(org.opensaml.saml.saml2.metadata.RoleDescriptor roleDescriptor,
org.opensaml.core.xml.XMLObject extension)
private org.opensaml.saml.saml2.metadata.Extensions buildExtensions()
Copyright © 1999–2015. All rights reserved.