本文整理了Java中org.opensaml.saml.saml2.core.Response.getStatus
方法的一些代码示例,展示了Response.getStatus
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.getStatus
方法的具体详情如下:
包路径:org.opensaml.saml.saml2.core.Response
类名称:Response
方法名:getStatus
暂无
代码示例来源:origin: line/armeria
private Assertion getValidatedAssertion(Response response, String endpointUri) {
final Status status = response.getStatus();
final String statusCode = status.getStatusCode().getValue();
if (!StatusCode.SUCCESS.equals(statusCode)) {
代码示例来源:origin: org.wso2.appserver/appserver-webapp-security
/**
* Returns true if the identity provider cannot authenticate the principal passively, as requested, else false.
*
* @param response the SAML 2.0 Response to be evaluated
* @return true if the identity provider cannot authenticate the principal passively, as requested, else false
*/
private boolean isNoPassive(Response response) {
return (response.getStatus() != null) &&
(response.getStatus().getStatusCode() != null) &&
(response.getStatus().getStatusCode().getValue().equals(StatusCode.RESPONDER)) &&
(response.getStatus().getStatusCode().getStatusCode() != null) &&
(response.getStatus().getStatusCode().getStatusCode().getValue().equals(StatusCode.NO_PASSIVE));
}
代码示例来源:origin: apache/cxf
) throws WSSecurityException {
if (samlResponse.getStatus() == null
|| samlResponse.getStatus().getStatusCode() == null) {
LOG.fine("Either the SAML Response Status or StatusCode is null");
throw new WSSecurityException(WSSecurityException.ErrorCode.FAILURE, "invalidSAMLsecurity");
if (!SAML2_STATUSCODE_SUCCESS.equals(samlResponse.getStatus().getStatusCode().getValue())) {
LOG.fine(
"SAML Status code of " + samlResponse.getStatus().getStatusCode().getValue()
+ "does not equal " + SAML2_STATUSCODE_SUCCESS
);
代码示例来源:origin: spring-projects/spring-security-saml
.setIssuer(getIssuer(parsed.getIssuer()))
.setVersion(parsed.getVersion().toString())
.setStatus(getStatus(parsed.getStatus()))
.setAssertions(
parsed.getAssertions().stream().map(a -> resolveAssertion(a, verificationKeys, localKeys))
代码示例来源:origin: com.linecorp.armeria/armeria-saml
private Assertion getValidatedAssertion(Response response, String endpointUri) {
final Status status = response.getStatus();
final String statusCode = status.getStatusCode().getValue();
if (!StatusCode.SUCCESS.equals(statusCode)) {
代码示例来源:origin: org.pac4j/pac4j-saml
final SignatureTrustEngine engine) {
validateSuccess(response.getStatus());
内容来源于网络,如有侵权,请联系作者删除!