Package org.opensaml.saml.security.impl
Class SAMLMetadataSignatureSigningParametersResolverTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.saml.security.impl.SAMLMetadataSignatureSigningParametersResolverTest
-
public class SAMLMetadataSignatureSigningParametersResolverTest extends XMLObjectBaseTestCase
-
-
Field Summary
Fields Modifier and Type Field Description private BasicSignatureSigningConfigurationconfig1private BasicSignatureSigningConfigurationconfig2private BasicSignatureSigningConfigurationconfig3private SignatureSigningConfigurationCriterionconfigCriterionprivate CriteriaSetcriteriaSetprivate StringdefaultC14Nprivate StringdefaultDSAAlgoprivate StringdefaultECAlgoprivate StringdefaultHMACAlgoprivate IntegerdefaultHMACOutputLengthprivate NamedKeyInfoGeneratorManagerdefaultKeyInfoGeneratorManagerprivate StringdefaultReferenceDigestprivate StringdefaultRSAAlgoprivate CredentialdsaCredprivate CredentialecCredprivate CredentialhmacCredprivate SAMLMetadataSignatureSigningParametersResolverresolverprivate RoleDescriptorroleDescprivate RoleDescriptorCriterionroleDescCriterionprivate CredentialrsaCred1024private CredentialrsaCred2048private CredentialrsaCred4096private StringtargetEntityID-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description SAMLMetadataSignatureSigningParametersResolverTest()
-
Method Summary
-
Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
resolver
private SAMLMetadataSignatureSigningParametersResolver resolver
-
criteriaSet
private CriteriaSet criteriaSet
-
configCriterion
private SignatureSigningConfigurationCriterion configCriterion
-
config1
private BasicSignatureSigningConfiguration config1
-
config2
private BasicSignatureSigningConfiguration config2
-
config3
private BasicSignatureSigningConfiguration config3
-
rsaCred1024
private Credential rsaCred1024
-
rsaCred2048
private Credential rsaCred2048
-
rsaCred4096
private Credential rsaCred4096
-
dsaCred
private Credential dsaCred
-
ecCred
private Credential ecCred
-
hmacCred
private Credential hmacCred
-
defaultReferenceDigest
private String defaultReferenceDigest
-
defaultC14N
private String defaultC14N
-
defaultRSAAlgo
private String defaultRSAAlgo
-
defaultDSAAlgo
private String defaultDSAAlgo
-
defaultECAlgo
private String defaultECAlgo
-
defaultHMACAlgo
private String defaultHMACAlgo
-
defaultHMACOutputLength
private Integer defaultHMACOutputLength
-
defaultKeyInfoGeneratorManager
private NamedKeyInfoGeneratorManager defaultKeyInfoGeneratorManager
-
roleDescCriterion
private RoleDescriptorCriterion roleDescCriterion
-
roleDesc
private RoleDescriptor roleDesc
-
targetEntityID
private String targetEntityID
-
-
Method Detail
-
buildCredentials
@BeforeClass public void buildCredentials() throws NoSuchAlgorithmException, NoSuchProviderException
-
setUp
@BeforeMethod public void setUp()
-
testBasicRSA
public void testBasicRSA() throws ResolverException- Throws:
ResolverException
-
testRSAWithRoleDescriptorSigningMethod
public void testRSAWithRoleDescriptorSigningMethod() throws ResolverException- Throws:
ResolverException
-
testRSAWithEntityDescriptorSigningMethod
public void testRSAWithEntityDescriptorSigningMethod() throws ResolverException- Throws:
ResolverException
-
testRSAWithRoleDescriptorDigestMethod
public void testRSAWithRoleDescriptorDigestMethod() throws ResolverException- Throws:
ResolverException
-
testRSAWithEntityDescriptorDigestMethod
public void testRSAWithEntityDescriptorDigestMethod() throws ResolverException- Throws:
ResolverException
-
testRSAWithSigningMethodBlacklisted
public void testRSAWithSigningMethodBlacklisted() throws ResolverException- Throws:
ResolverException
-
testRSAWithDigestMethodBlacklisted
public void testRSAWithDigestMethodBlacklisted() throws ResolverException- Throws:
ResolverException
-
testECWithSigningMethodWhitelisted
public void testECWithSigningMethodWhitelisted() throws ResolverException- Throws:
ResolverException
-
testMultipleCredsWithSigningMethodSelection
public void testMultipleCredsWithSigningMethodSelection() throws ResolverException- Throws:
ResolverException
-
testRSAMinKeyLength
public void testRSAMinKeyLength() throws ResolverException- Throws:
ResolverException
-
testRSAMaxKeyLength
public void testRSAMaxKeyLength() throws ResolverException- Throws:
ResolverException
-
testNoCredentials
public void testNoCredentials() throws ResolverException- Throws:
ResolverException
-
testNoAlgorithms
public void testNoAlgorithms() throws ResolverException- Throws:
ResolverException
-
testNoReferenceDigestMethods
public void testNoReferenceDigestMethods() throws ResolverException- Throws:
ResolverException
-
testNoC14NAlgorithm
public void testNoC14NAlgorithm() throws ResolverException- Throws:
ResolverException
-
testNullCriteriaSet
public void testNullCriteriaSet() throws ResolverException- Throws:
ResolverException
-
testAbsentCriterion
public void testAbsentCriterion() throws ResolverException- Throws:
ResolverException
-
buildRoleDescriptorSkeleton
private RoleDescriptor buildRoleDescriptorSkeleton()
-
buildSigningMethod
private SigningMethod buildSigningMethod(String algorithm, Integer minKeySize, Integer maxKeySize)
-
buildDigestMethod
private DigestMethod buildDigestMethod(String algorithm)
-
addRoleDescriptorExtension
private void addRoleDescriptorExtension(RoleDescriptor roleDescriptor, XMLObject extension)
-
addEntityDescriptorExtension
private void addEntityDescriptorExtension(RoleDescriptor roleDescriptor, XMLObject extension)
-
buildExtensions
private Extensions buildExtensions()
-
-