本文整理汇总了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);
}
示例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);
}
示例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();
}
示例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();
}
示例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();
}
示例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;
}