public class PKIXX509CredentialTrustEngineTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
PKIXX509CredentialTrustEngine implementation.| Modifier and Type | Field and Description |
|---|---|
private X509Credential |
cred |
private net.shibboleth.utilities.java.support.resolver.CriteriaSet |
criteriaSet |
private static String |
DATA_PATH |
private static Set<X509Certificate> |
EMPTY_ANCHORS |
private static Set<X509CRL> |
EMPTY_CRLS |
private org.opensaml.security.x509.impl.PKIXX509CredentialTrustEngine |
engine |
private static Integer |
MAX_DEPTH |
private String |
subjectCN |
| Constructor and Description |
|---|
PKIXX509CredentialTrustEngineTest() |
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElementprivate static final String DATA_PATH
private static final Set<X509Certificate> EMPTY_ANCHORS
private static final Integer MAX_DEPTH
private org.opensaml.security.x509.impl.PKIXX509CredentialTrustEngine engine
private X509Credential cred
private net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet
private String subjectCN
public void testGoodPathInAnchors()
public void testGoodPathInCred()
public void testGoodPathNoTrustedNames()
public void testGoodPathBadTrustedName()
public void testCertRevoked()
public void testCertExpired()
public void testMissingAnchor()
public void testNoAnchors()
private void testValidateSuccess(String message)
private void testValidateFailure(String message)
private BasicX509Credential getCredential(String entityCertFileName, String... chainMembers)
private org.opensaml.security.x509.impl.PKIXX509CredentialTrustEngine getEngine(Collection<X509Certificate> certs, Collection<X509CRL> crls, Integer depth, String... trustedNames)
private PKIXValidationInformation getPKIXInfoSet(Collection<X509Certificate> certs, Collection<X509CRL> crls, Integer depth)
private Collection<X509Certificate> getCertificates(String... certNames)
private X509Certificate getCertificate(String fileName)
private Collection<X509CRL> getCRLS(String... crlNames)
private InputStream getInputStream(String fileName)
Copyright © 1999–2014. All rights reserved.