本文整理了Java中org.opensaml.saml1.core.Assertion.getConditions()
方法的一些代码示例,展示了Assertion.getConditions()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Assertion.getConditions()
方法的具体详情如下:
包路径:org.opensaml.saml1.core.Assertion
类名称:Assertion
方法名:getConditions
[英]Return the (singleton) Object, representing the Conditions
sub element.
[中]返回(单例)对象,表示Conditions
子元素。
代码示例来源:origin: org.opensaml/opensaml
protected void validateDoNotCache(Assertion assertion) throws ValidationException {
if (assertion.getMinorVersion() == 0) {
Conditions conditions = assertion.getConditions();
if (conditions != null) {
for (Condition condition : conditions.getConditions()) {
if (condition instanceof DoNotCacheCondition) {
throw new ValidationException("DoNotCacheCondition not valid in SAML1.0");
}
}
}
}
}
}
代码示例来源:origin: org.apache.rampart/rampart-core
@Override
protected void processSAMLAssertion() {
this.setAssertionId(assertion.getID());
//Read the validity period from the 'Conditions' element, else read it from SC Data
if (assertion.getConditions() != null) {
Conditions conditions = assertion.getConditions();
if (conditions.getNotBefore() != null) {
this.setDateNotBefore(conditions.getNotBefore().toDate());
}
if (conditions.getNotOnOrAfter() != null) {
this.setDateNotOnOrAfter(conditions.getNotOnOrAfter().toDate());
}
}
}
代码示例来源:origin: org.ojbc.bundles.shared/ojb-common
validTill = assertion.getSaml2().getConditions().getNotOnOrAfter();
} else if (assertion.getSamlVersion().equals(SAMLVersion.VERSION_11)
&& assertion.getSaml1().getConditions() != null) {
validFrom = assertion.getSaml1().getConditions().getNotBefore();
validTill = assertion.getSaml1().getConditions().getNotOnOrAfter();
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j
issueInstant = assertion.getSaml2().getIssueInstant();
} else if (assertion.getSamlVersion().equals(SAMLVersion.VERSION_11)
&& assertion.getSaml1().getConditions() != null) {
validFrom = assertion.getSaml1().getConditions().getNotBefore();
validTill = assertion.getSaml1().getConditions().getNotOnOrAfter();
issueInstant = assertion.getSaml1().getIssueInstant();
代码示例来源:origin: org.apache.ws.security/wss4j
issueInstant = assertion.getSaml2().getIssueInstant();
} else if (assertion.getSamlVersion().equals(SAMLVersion.VERSION_11)
&& assertion.getSaml1().getConditions() != null) {
validFrom = assertion.getSaml1().getConditions().getNotBefore();
validTill = assertion.getSaml1().getConditions().getNotOnOrAfter();
issueInstant = assertion.getSaml1().getIssueInstant();
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.oauth
Conditions conditions = assertion.getConditions();
if (conditions != null) {
List<AudienceRestrictionCondition> audienceRestrictions = conditions.getAudienceRestrictionConditions();
boolean bearerFound = false;
if (assertion.getConditions() != null && assertion.getConditions().getNotOnOrAfter() != null) {
notOnOrAfterFromConditions = assertion.getConditions().getNotOnOrAfter();
代码示例来源:origin: org.wso2.carbon.identity.inbound.auth.oauth2/org.wso2.carbon.identity.oauth
Conditions conditions = assertion.getConditions();
if (conditions != null) {
List<AudienceRestrictionCondition> audienceRestrictions = conditions.getAudienceRestrictionConditions();
boolean bearerFound = false;
if (assertion.getConditions() != null && assertion.getConditions().getNotOnOrAfter() != null) {
notOnOrAfterFromConditions = assertion.getConditions().getNotOnOrAfter();
代码示例来源:origin: org.apache.ws.security/wss4j
&& assertion.getSaml1().getConditions() != null) {
org.opensaml.saml1.core.Conditions conditions =
assertion.getSaml1().getConditions();
if (conditions != null && conditions.getAudienceRestrictionConditions() != null
&& !conditions.getAudienceRestrictionConditions().isEmpty()) {
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j
&& assertion.getSaml1().getConditions() != null) {
org.opensaml.saml1.core.Conditions conditions =
assertion.getSaml1().getConditions();
if (conditions != null && conditions.getAudienceRestrictionConditions() != null
&& !conditions.getAudienceRestrictionConditions().isEmpty()) {
代码示例来源:origin: org.apache.rampart/rampart-trust
if (samlAssertion.getConditions() == null) {
samlAssertion.setConditions((Conditions) CommonUtil.buildXMLObject(Conditions.DEFAULT_ELEMENT_NAME));
samlAssertion.getConditions().setNotBefore(new DateTime(creationTime));
samlAssertion.getConditions().setNotOnOrAfter(new DateTime(expirationTime));
内容来源于网络,如有侵权,请联系作者删除!