当前位置: 首页>>代码示例>>Java>>正文


Java BasicSAMLMessageContext.setInboundMessageTransport方法代码示例

本文整理汇总了Java中org.opensaml.common.binding.BasicSAMLMessageContext.setInboundMessageTransport方法的典型用法代码示例。如果您正苦于以下问题:Java BasicSAMLMessageContext.setInboundMessageTransport方法的具体用法?Java BasicSAMLMessageContext.setInboundMessageTransport怎么用?Java BasicSAMLMessageContext.setInboundMessageTransport使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.opensaml.common.binding.BasicSAMLMessageContext的用法示例。


在下文中一共展示了BasicSAMLMessageContext.setInboundMessageTransport方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setUp

import org.opensaml.common.binding.BasicSAMLMessageContext; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void setUp() throws Exception {
    super.setUp();
    
    httpRequest = new MockHttpServletRequest();
    httpRequest.setMethod("POST");
    httpRequest.setParameter("TARGET", expectedRelayValue);
    
    messageContext = new BasicSAMLMessageContext();
    messageContext.setInboundMessageTransport(new HttpServletRequestAdapter(httpRequest));
    
    decoder = new HTTPPostDecoder(null);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:14,代码来源:HTTPPostDecoderTest.java

示例2: setUp

import org.opensaml.common.binding.BasicSAMLMessageContext; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void setUp() throws Exception {
    super.setUp();
    
    httpRequest = new MockHttpServletRequest();
    httpRequest.setMethod("POST");
    
    messageContext = new BasicSAMLMessageContext();
    messageContext.setInboundMessageTransport(new HttpServletRequestAdapter(httpRequest));
    
    decoder = new HTTPSOAP11Decoder(null);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:13,代码来源:HTTPSOAP11DecoderTest.java

示例3: setUp

import org.opensaml.common.binding.BasicSAMLMessageContext; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void setUp() throws Exception {
    super.setUp();
    
    httpRequest = new MockHttpServletRequest();
    httpRequest.setMethod("POST");
    httpRequest.setParameter("RelayState", expectedRelayValue);
    
    messageContext = new BasicSAMLMessageContext();
    messageContext.setInboundMessageTransport(new HttpServletRequestAdapter(httpRequest));
    
    decoder = new HTTPPostDecoder();
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:14,代码来源:HTTPPostDecoderTest.java

示例4: setUp

import org.opensaml.common.binding.BasicSAMLMessageContext; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void setUp() throws Exception {
    super.setUp();
    
    httpRequest = new MockHttpServletRequest();
    httpRequest.setMethod("GET");
    httpRequest.setParameter("RelayState", expectedRelayValue);
    
    messageContext = new BasicSAMLMessageContext();
    messageContext.setInboundMessageTransport(new HttpServletRequestAdapter(httpRequest));
    
    decoder = new HTTPRedirectDeflateDecoder();
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:14,代码来源:HTTPRedirectDeflateDecoderTest.java

示例5: setUp

import org.opensaml.common.binding.BasicSAMLMessageContext; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void setUp() throws Exception {
    super.setUp();
    
    httpRequest = new MockHttpServletRequest();
    httpRequest.setMethod("POST");
    
    messageContext = new BasicSAMLMessageContext();
    messageContext.setInboundMessageTransport(new HttpServletRequestAdapter(httpRequest));
    
    decoder = new HTTPSOAP11Decoder();
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:13,代码来源:HTTPSOAP11DecoderTest.java

示例6: getMessageContextFromRequest

import org.opensaml.common.binding.BasicSAMLMessageContext; //导入方法依赖的package包/类
private static BasicSAMLMessageContext<LogoutRequest, ?, ?> getMessageContextFromRequest(HttpServletRequest request) {
    // Unpack the <LogoutRequest> from the request
    BasicSAMLMessageContext<LogoutRequest, ?, ?> messageContext = new BasicSAMLMessageContext<LogoutRequest, SAMLObject, SAMLObject>();
    messageContext.setInboundMessageTransport(new HttpServletRequestAdapter(request));
    return messageContext;
}
 
开发者ID:amagdenko,项目名称:oiosaml.java,代码行数:7,代码来源:OIOLogoutRequest.java


注:本文中的org.opensaml.common.binding.BasicSAMLMessageContext.setInboundMessageTransport方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。