public class BasicX509CredentialNameEvaluatorTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
CertPathPKIXTrustEvaluator implementation.| Modifier and Type | Field and Description |
|---|---|
private String |
altNameDNS |
private String |
altNameURL |
private X509Credential |
cred |
private X509Certificate |
entityCert3AltNamesDNS_URL_IP |
private String |
entityCert3AltNamesDNS_URL_IPBase64 |
private org.opensaml.security.x509.impl.BasicX509CredentialNameEvaluator |
evaluator |
private Set<String> |
names |
private String |
subjectCN |
private String |
subjectDN |
| Constructor and Description |
|---|
BasicX509CredentialNameEvaluatorTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
void |
testAllOptionsEnabled() |
void |
testAltNamesEnabledNoTypes() |
void |
testCommonNameFail() |
void |
testCommonNameSuccess() |
void |
testDNSAltNameFail() |
void |
testDNSAltNameSuccess() |
private void |
testEvaluateFailure(String message,
Set<String> trustedNames,
X509Credential untrustedCred) |
private void |
testEvaluateSuccess(String message,
Set<String> trustedNames,
X509Credential untrustedCred)
Helper methods.
|
void |
testNameCheckNotActive() |
void |
testNoTrustedNames() |
void |
testSubjectDNFail() |
void |
testSubjectDNInputNotDN() |
void |
testSubjectDNSuccess() |
void |
testTrustedNamesNull() |
void |
testURLAltNameFail() |
void |
testURLAltNameSuccess() |
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElementprivate X509Certificate entityCert3AltNamesDNS_URL_IP
private String entityCert3AltNamesDNS_URL_IPBase64
private org.opensaml.security.x509.impl.BasicX509CredentialNameEvaluator evaluator
private X509Credential cred
private String subjectCN
private String subjectDN
private String altNameDNS
private String altNameURL
public BasicX509CredentialNameEvaluatorTest()
public void testCommonNameSuccess()
public void testCommonNameFail()
public void testSubjectDNSuccess()
public void testSubjectDNFail()
public void testSubjectDNInputNotDN()
public void testDNSAltNameSuccess()
public void testDNSAltNameFail()
public void testURLAltNameSuccess()
public void testURLAltNameFail()
public void testAltNamesEnabledNoTypes()
public void testAllOptionsEnabled()
public void testNameCheckNotActive()
public void testNoTrustedNames()
public void testTrustedNamesNull()
private void testEvaluateSuccess(String message, Set<String> trustedNames, X509Credential untrustedCred)
private void testEvaluateFailure(String message, Set<String> trustedNames, X509Credential untrustedCred)
Copyright © 1999–2014. All rights reserved.