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

x33g5p2x  于2022-01-16 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(100)

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

Assertion.getStatements介绍

[英]Gets the list of statements attached to this assertion.
[中]获取附加到此断言的语句列表。

代码示例

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

@Nonnull final ValidationContext context) throws AssertionValidationException {
List<Statement> statements = assertion.getStatements();
if (statements == null || statements.isEmpty()) {
  return ValidationResult.VALID;

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

/** {@inheritDoc} */
protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException {
  Assertion assertion = (Assertion) parentObject;
  if (childObject instanceof Issuer) {
    assertion.setIssuer((Issuer) childObject);
  } else if (childObject instanceof Signature) {
    assertion.setSignature((Signature) childObject);
  } else if (childObject instanceof Subject) {
    assertion.setSubject((Subject) childObject);
  } else if (childObject instanceof Conditions) {
    assertion.setConditions((Conditions) childObject);
  } else if (childObject instanceof Advice) {
    assertion.setAdvice((Advice) childObject);
  } else if (childObject instanceof Statement) {
    assertion.getStatements().add((Statement) childObject);
  } else {
    super.processChildElement(parentObject, childObject);
  }
}

相关文章