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

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

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

Assertion.setIssuer介绍

[英]Sets the Issuer of this assertion.
[中]设置此断言的颁发者。

代码示例

代码示例来源:origin: line/armeria

assertion.setIssuer(XMLObjectSupport.cloneXMLObject(issuer));
assertion.setIssueInstant(DateTime.now());
assertion.setID(requestIdManager.newId());

代码示例来源:origin: stackoverflow.com

//Create assertion
 Assertion assertion = SAML2ComponentBuilder.createAssertion();
 //create issuer
 Issuer issuer = SAML2ComponentBuilder.createIssuer(issuerString);
 assertion.setIssuer(issuer);

代码示例来源:origin: org.jasig.cas/cas-server-support-saml

/**
 * Create a new SAML1 response object.
 *
 * @param authnStatement the authn statement
 * @param issuer the issuer
 * @param issuedAt the issued at
 * @param id the id
 * @return the assertion
 */
public Assertion newAssertion(final AuthnStatement authnStatement, final String issuer,
               final DateTime issuedAt, final String id) {
  final Assertion assertion = newSamlObject(Assertion.class);
  assertion.setID(id);
  assertion.setIssueInstant(issuedAt);
  assertion.setIssuer(newIssuer(issuer));
  assertion.getAuthnStatements().add(authnStatement);
  return assertion;
}

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

final Issuer issuerObject = issuerBuilder.buildObject();
issuerObject.setValue(issuer);
assertion.setIssuer(issuerObject);

代码示例来源: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);
  }
}

代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-common

saml2.setIssuer(samlIssuer);

代码示例来源:origin: org.wso2.carbon.identity.inbound.auth.saml2/org.wso2.carbon.identity.query.saml

samlAssertion.setID(SAMLSSOUtil.createID());
samlAssertion.setVersion(SAMLVersion.VERSION_20);
samlAssertion.setIssuer(OpenSAML3Util.getIssuer("carbon.super"));
samlAssertion.setIssueInstant(currentTime);
Subject subject = new SubjectBuilder().buildObject();

代码示例来源:origin: org.wso2.carbon.identity.inbound.auth.saml2/org.wso2.carbon.identity.query.saml

samlAssertion.setID(SAMLSSOUtil.createID());
samlAssertion.setVersion(SAMLVersion.VERSION_20);
samlAssertion.setIssuer(OpenSAML3Util.getIssuer("carbon.super"));
samlAssertion.setIssueInstant(currentTime);
Subject subject = new SubjectBuilder().buildObject();

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

.class);
issuer.setValue(request.getIssuer().getValue());
a.setIssuer(issuer);

相关文章