public class SignatureValidationFilterPKIXTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private static String |
DATA_PATH |
private org.opensaml.saml.metadata.resolver.filter.impl.SignatureValidationFilter |
filter |
| Constructor and Description |
|---|
SignatureValidationFilterPKIXTest() |
| Modifier and Type | Method and Description |
|---|---|
private org.opensaml.security.x509.BasicX509Credential |
buildSigningCredential(String key,
String cert,
String... chainMembers) |
private SignatureTrustEngine |
buildTrustEngine() |
private org.opensaml.core.xml.XMLObject |
generateSignedMetadata(org.opensaml.security.credential.Credential signingCredential,
String unsignedMetadata) |
private X509Certificate |
getCertificate(String fileName) |
private Collection<X509Certificate> |
getCertificates(String... certNames) |
private InputStream |
getInputStream(String fileName) |
private org.opensaml.security.x509.PKIXValidationInformation |
getPKIXInfoSet(Collection<X509Certificate> certs,
Collection<X509CRL> crls,
Integer depth) |
private PrivateKey |
getPrivateKey(String fileName) |
void |
setUp() |
void |
testEntityDescriptor() |
void |
testEntityDescriptorInvalidEntityID() |
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElementprivate static final String DATA_PATH
private org.opensaml.saml.metadata.resolver.filter.impl.SignatureValidationFilter filter
public void setUp()
public void testEntityDescriptorInvalidEntityID()
throws Exception
Exceptionprivate org.opensaml.core.xml.XMLObject generateSignedMetadata(org.opensaml.security.credential.Credential signingCredential,
String unsignedMetadata)
throws org.opensaml.security.SecurityException,
SignatureException,
org.opensaml.core.xml.io.MarshallingException,
org.opensaml.core.xml.io.UnmarshallingException
org.opensaml.security.SecurityExceptionSignatureExceptionorg.opensaml.core.xml.io.MarshallingExceptionorg.opensaml.core.xml.io.UnmarshallingExceptionprivate SignatureTrustEngine buildTrustEngine()
private org.opensaml.security.x509.PKIXValidationInformation getPKIXInfoSet(Collection<X509Certificate> certs, Collection<X509CRL> crls, Integer depth)
private org.opensaml.security.x509.BasicX509Credential buildSigningCredential(String key, String cert, String... chainMembers)
private PrivateKey getPrivateKey(String fileName)
private Collection<X509Certificate> getCertificates(String... certNames)
private X509Certificate getCertificate(String fileName)
private InputStream getInputStream(String fileName)
Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.