public class SAMLProtocolMessageXMLSignatureSecurityHandlerTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private CollectionCredentialResolver |
credResolver |
private org.opensaml.saml.common.binding.security.impl.SAMLProtocolMessageXMLSignatureSecurityHandler |
handler |
private String |
issuer |
private org.opensaml.messaging.context.MessageContext<org.opensaml.saml.common.SAMLObject> |
messageContext |
private X509Certificate |
otherCert1 |
private String |
otherCert1Base64 |
private SignatureTrustEngine |
signatureTrustEngine |
private X509Certificate |
signingCert |
private String |
signingCertBase64 |
private org.opensaml.security.x509.BasicX509Credential |
signingX509Cred |
private SignatureValidationParameters |
sigValParams |
private List<org.opensaml.security.credential.Credential> |
trustedCredentials |
| Constructor and Description |
|---|
SAMLProtocolMessageXMLSignatureSecurityHandlerTest() |
| Modifier and Type | Method and Description |
|---|---|
protected org.opensaml.saml.saml2.core.AuthnRequest |
buildInboundSAMLMessage() |
protected void |
setUp() |
void |
testBlacklistedSigntureAlgorithm()
Test blacklisted signature algorithm.
|
void |
testInvalidSignature()
Test context issuer set, invalid signature with trusted credential.
|
void |
testNoContextIssuer()
Test context issuer set, valid signature with untrusted credential.
|
void |
testNoTrustEngine()
Test no trust engine supplied.
|
void |
testSuccess()
Test context issuer set, valid signature with trusted credential.
|
void |
testUntrustedCredential()
Test context issuer set, valid signature with untrusted credential.
|
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElementprivate org.opensaml.messaging.context.MessageContext<org.opensaml.saml.common.SAMLObject> messageContext
private org.opensaml.saml.common.binding.security.impl.SAMLProtocolMessageXMLSignatureSecurityHandler handler
private X509Certificate signingCert
private String signingCertBase64
private X509Certificate otherCert1
private String otherCert1Base64
private CollectionCredentialResolver credResolver
private List<org.opensaml.security.credential.Credential> trustedCredentials
private org.opensaml.security.x509.BasicX509Credential signingX509Cred
private String issuer
private SignatureTrustEngine signatureTrustEngine
private SignatureValidationParameters sigValParams
public SAMLProtocolMessageXMLSignatureSecurityHandlerTest()
public void testSuccess()
throws org.opensaml.messaging.handler.MessageHandlerException
org.opensaml.messaging.handler.MessageHandlerExceptionpublic void testBlacklistedSigntureAlgorithm()
throws org.opensaml.messaging.handler.MessageHandlerException
org.opensaml.messaging.handler.MessageHandlerExceptionpublic void testUntrustedCredential()
throws org.opensaml.messaging.handler.MessageHandlerException
org.opensaml.messaging.handler.MessageHandlerExceptionpublic void testInvalidSignature()
throws org.opensaml.messaging.handler.MessageHandlerException
org.opensaml.messaging.handler.MessageHandlerExceptionpublic void testNoContextIssuer()
throws org.opensaml.messaging.handler.MessageHandlerException
org.opensaml.messaging.handler.MessageHandlerExceptionpublic void testNoTrustEngine()
throws org.opensaml.messaging.handler.MessageHandlerException
org.opensaml.messaging.handler.MessageHandlerExceptionprotected org.opensaml.saml.saml2.core.AuthnRequest buildInboundSAMLMessage()
Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.