Class SignatureValidationFilterExplicitKeyTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.saml.metadata.resolver.filter.impl.SignatureValidationFilterExplicitKeyTest
-
public class SignatureValidationFilterExplicitKeyTest extends XMLObjectBaseTestCase
Unit tests forSignatureValidationFilter.
-
-
Field Summary
Fields Modifier and Type Field Description private MetadataFilterContextfilterContextprivate KeyInfoCredentialResolverkiResolverprivate StringopenIDCertBase64private StringopenIDFileInvalidprivate StringopenIDFileValidprivate StringswitchMDCertBase64private DocumentswitchMDDocumentInvalidprivate DocumentswitchMDDocumentValidprivate StringswitchMDFileInvalidprivate StringswitchMDFileValidprivate SignatureTrustEngineswitchSigTrustEngine-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description SignatureValidationFilterExplicitKeyTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildKeyInfoCredentialResolver()protected voidsetUp()voidtestEntityDescriptor()voidtestEntityDescriptorInvalid()voidtestEntityDescriptorInvalidWithRootSkip()voidtestEntityDescriptorWithProvider()voidtestInvalidEntityDescriptorWithProvider()voidtestInvalidSWITCHStandalone()voidtestInvalidSWITCHStandaloneWithRootSkip()voidtestIsSkipRootSignatureEval()voidtestSWITCHStandaloneBlacklistedSignatureAlgorithm()voidtestValidSWITCHStandalone()-
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
-
switchMDFileValid
private final String switchMDFileValid
- See Also:
- Constant Field Values
-
switchMDFileInvalid
private final String switchMDFileInvalid
- See Also:
- Constant Field Values
-
switchMDDocumentValid
private Document switchMDDocumentValid
-
switchMDDocumentInvalid
private Document switchMDDocumentInvalid
-
switchSigTrustEngine
private SignatureTrustEngine switchSigTrustEngine
-
switchMDCertBase64
private String switchMDCertBase64
-
openIDFileValid
private final String openIDFileValid
- See Also:
- Constant Field Values
-
openIDFileInvalid
private final String openIDFileInvalid
- See Also:
- Constant Field Values
-
openIDCertBase64
private String openIDCertBase64
-
kiResolver
private KeyInfoCredentialResolver kiResolver
-
filterContext
private MetadataFilterContext filterContext
-
-
Method Detail
-
buildKeyInfoCredentialResolver
@BeforeClass public void buildKeyInfoCredentialResolver()
-
testValidSWITCHStandalone
public void testValidSWITCHStandalone() throws UnmarshallingException- Throws:
UnmarshallingException
-
testSWITCHStandaloneBlacklistedSignatureAlgorithm
public void testSWITCHStandaloneBlacklistedSignatureAlgorithm() throws UnmarshallingException, FilterException
-
testInvalidSWITCHStandalone
public void testInvalidSWITCHStandalone() throws UnmarshallingException- Throws:
UnmarshallingException
-
testInvalidSWITCHStandaloneWithRootSkip
public void testInvalidSWITCHStandaloneWithRootSkip() throws UnmarshallingException- Throws:
UnmarshallingException
-
testEntityDescriptor
public void testEntityDescriptor() throws UnmarshallingException, CertificateException, XMLParserException
-
testEntityDescriptorInvalid
public void testEntityDescriptorInvalid() throws UnmarshallingException, CertificateException, XMLParserException
-
testEntityDescriptorInvalidWithRootSkip
public void testEntityDescriptorInvalidWithRootSkip() throws UnmarshallingException, CertificateException, XMLParserException
-
testEntityDescriptorWithProvider
public void testEntityDescriptorWithProvider() throws CertificateException, XMLParserException, UnmarshallingException
-
testInvalidEntityDescriptorWithProvider
public void testInvalidEntityDescriptorWithProvider() throws CertificateException, XMLParserException, UnmarshallingException
-
testIsSkipRootSignatureEval
public void testIsSkipRootSignatureEval()
-
-