org.opensaml.saml.saml2.core.Response.getInResponseTo()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(180)

本文整理了Java中org.opensaml.saml.saml2.core.Response.getInResponseTo方法的一些代码示例,展示了Response.getInResponseTo的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.getInResponseTo方法的具体详情如下:
包路径:org.opensaml.saml.saml2.core.Response
类名称:Response
方法名:getInResponseTo

Response.getInResponseTo介绍

暂无

代码示例

代码示例来源:origin: org.opensaml/opensaml-saml-impl

public String apply(ProfileRequestContext input) {
    if (response != null && response.getInResponseTo() != null) {
      log.debug("{} Setting confirmation data InResponseTo to {}", getLogPrefix(),
          response.getInResponseTo());
      return response.getInResponseTo();
    }
    log.debug("{} Setting confirmation data InResponseTo to (none)", getLogPrefix());
    return null;
  }
};

代码示例来源:origin: org.pac4j/pac4j-saml

if (messageStorage != null && response.getInResponseTo() != null) {
  final XMLObject xmlObject = messageStorage.retrieveMessage(response.getInResponseTo());
  if (xmlObject == null) {
    throw new SAMLInResponseToMismatchException("InResponseToField of the Response doesn't correspond to sent message "
      + response.getInResponseTo());
  } else if (xmlObject instanceof AuthnRequest) {
    request = (AuthnRequest) xmlObject;
  } else {
    throw new SAMLInResponseToMismatchException("Sent request was of different type than the expected AuthnRequest "
      + response.getInResponseTo());

代码示例来源:origin: spring-projects/spring-security-saml

.setDestination(parsed.getDestination())
.setId(parsed.getID())
.setInResponseTo(parsed.getInResponseTo())
.setIssueInstant(parsed.getIssueInstant())
.setIssuer(getIssuer(parsed.getIssuer()))

相关文章