public class SAMLMDClientCertAuthSecurityHandlerTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private CollectionCredentialResolver |
credResolver |
private org.opensaml.saml.common.binding.security.impl.SAMLMDClientCertAuthSecurityHandler |
handler |
private String |
issuer |
private org.opensaml.messaging.context.MessageContext<org.opensaml.saml.common.SAMLObject> |
messageContext |
private org.opensaml.security.x509.tls.CertificateNameOptions |
nameOptions |
private X509Certificate |
otherCert1 |
private String |
otherCert1Base64 |
private org.springframework.mock.web.MockHttpServletRequest |
request |
private List<org.opensaml.security.credential.Credential> |
trustedCredentials |
private org.opensaml.security.trust.TrustEngine<org.opensaml.security.x509.X509Credential> |
trustEngine |
private X509Certificate |
validCert |
private String |
validCertBase64 |
private org.opensaml.security.x509.BasicX509Credential |
validX509Cred |
| Constructor and Description |
|---|
SAMLMDClientCertAuthSecurityHandlerTest() |
| Modifier and Type | Method and Description |
|---|---|
protected org.opensaml.saml.saml2.core.AuthnRequest |
buildInboundSAMLMessage() |
protected void |
setUp() |
void |
testDynamicContextIssuer()
Test context issuer not set explicitly, resolved dynamically by SAMLPeerEntityContext from SAML 2 message,
request with trusted credential.
|
void |
testNoContextIssuer()
Test context issuer not set, request with trusted credential.
|
void |
testNoNameOptions()
Test case of no cert name options supplied.
|
void |
testNoTrustEngine()
Test case of no trust engine supplied.
|
void |
testSuccess()
Test context issuer set, request with trusted credential.
|
void |
testSuccessNonDefaultEntityContextClass()
Test context issuer set, with non-default entity context class, request with trusted credential.
|
void |
testUntrustedCredential()
Test context issuer set, request 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.SAMLMDClientCertAuthSecurityHandler handler
private org.springframework.mock.web.MockHttpServletRequest request
private X509Certificate validCert
private String validCertBase64
private X509Certificate otherCert1
private String otherCert1Base64
private CollectionCredentialResolver credResolver
private List<org.opensaml.security.credential.Credential> trustedCredentials
private org.opensaml.security.x509.BasicX509Credential validX509Cred
private String issuer
private org.opensaml.security.trust.TrustEngine<org.opensaml.security.x509.X509Credential> trustEngine
private org.opensaml.security.x509.tls.CertificateNameOptions nameOptions
public SAMLMDClientCertAuthSecurityHandlerTest()
public void testSuccess()
throws org.opensaml.messaging.handler.MessageHandlerException
org.opensaml.messaging.handler.MessageHandlerExceptionpublic void testSuccessNonDefaultEntityContextClass()
throws org.opensaml.messaging.handler.MessageHandlerException,
ComponentInitializationException
org.opensaml.messaging.handler.MessageHandlerExceptionComponentInitializationExceptionpublic void testUntrustedCredential()
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 testDynamicContextIssuer()
throws org.opensaml.messaging.handler.MessageHandlerException
org.opensaml.messaging.handler.MessageHandlerExceptionpublic void testNoTrustEngine()
throws org.opensaml.messaging.handler.MessageHandlerException
org.opensaml.messaging.handler.MessageHandlerExceptionpublic void testNoNameOptions()
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.