public class PKIXSignatureTrustEngineTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
PKIXSignatureTrustEngine implementation.| Modifier and Type | Field and Description |
|---|---|
private net.shibboleth.utilities.java.support.resolver.CriteriaSet |
criteriaSet |
private static String |
DATA_PATH |
private boolean |
emitKeyInfo |
private boolean |
emitKeyValueOnly |
private static Set<X509Certificate> |
EMPTY_ANCHORS |
private static Set<X509CRL> |
EMPTY_CRLS |
private org.opensaml.xmlsec.signature.support.impl.PKIXSignatureTrustEngine |
engine |
private static Integer |
MAX_DEPTH |
private String |
rawAlgorithmURI |
private org.opensaml.security.credential.Credential |
rawCandidateCred |
private String |
rawData |
private byte[] |
rawSignature |
private byte[] |
rawSignedContent |
private org.opensaml.xmlsec.signature.Signature |
signature |
private String |
subjectCN |
private boolean |
tamperDocumentPostSigning |
| Constructor and Description |
|---|
PKIXSignatureTrustEngineTest() |
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.xmlsec.signature.support.impl.PKIXSignatureTrustEngine engine
private org.opensaml.xmlsec.signature.Signature signature
private net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet
private String subjectCN
private boolean tamperDocumentPostSigning
private boolean emitKeyInfo
private boolean emitKeyValueOnly
private String rawData
private byte[] rawSignedContent
private String rawAlgorithmURI
private byte[] rawSignature
private org.opensaml.security.credential.Credential rawCandidateCred
public void testGoodPathInAnchors()
public void testGoodPathInCred()
public void testGoodPathNoTrustedNames()
public void testGoodPathBadTrustedName()
public void testCertRevoked()
public void testCertExpired()
public void testMissingAnchor()
public void testNoAnchors()
public void testTamperedData()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testNoCandidateCred()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testWrongCredType()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testWhitelistedAlgorithms()
public void testBlacklistedSignatureAlgorithm()
public void testBlacklistedDigestAlgorithm()
public void testRawGoodPathInAnchors()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testRawGoodPathInCred()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testRawGoodPathNoTrustedNames()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testRawGoodPathBadTrustedName()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testRawCertRevoked()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testRawCertExpired()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testRawCertMissingAnchor()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testRawCertNoAnchors()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testRawTamperedData()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testRawNoCandidateCred()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testRawWrongCredType()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testRawWhitelistedAlgorithm()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testRawBlacklistedAlgorithm()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionprivate void testValidateSuccess(String message)
private void testValidateFailure(String message)
private org.opensaml.xmlsec.signature.Signature getSignature(String entityCertFileName, String entityKeyFileName, String... chainMembers)
private org.opensaml.security.x509.BasicX509Credential getCredential(String entityCertFileName, String entityKeyFileName, String... chainMembers)
private org.opensaml.xmlsec.signature.support.impl.PKIXSignatureTrustEngine getEngine(Collection<X509Certificate> certs, Collection<X509CRL> crls, Integer depth, String... trustedNames)
private org.opensaml.security.x509.PKIXValidationInformation getPKIXInfoSet(Collection<X509Certificate> certs, Collection<X509CRL> crls, Integer depth)
private Collection<X509Certificate> getCertificates(String... certNames)
private PrivateKey getPrivateKey(String fileName)
private X509Certificate getCertificate(String fileName)
private Collection<X509CRL> getCRLS(String... crlNames)
private InputStream getInputStream(String fileName)
private org.opensaml.xmlsec.signature.SignableXMLObject buildSignedObject(org.opensaml.security.x509.X509Credential signingX509Cred)
throws org.opensaml.xmlsec.signature.support.SignatureException
org.opensaml.xmlsec.signature.support.SignatureExceptionprivate void testRawValidateSuccess(String message)
private void testRawValidateFailure(String message)
Copyright © 1999–2015. All rights reserved.