本文整理了Java中org.opensaml.saml.saml2.core.Response.getInResponseTo
方法的一些代码示例,展示了Response.getInResponseTo
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.getInResponseTo
方法的具体详情如下:
包路径:org.opensaml.saml.saml2.core.Response
类名称: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()))
内容来源于网络,如有侵权,请联系作者删除!