/** {@inheritDoc} */ public Assertion buildObject() { return buildObject(SAMLConstants.SAML20_NS, Assertion.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX); }
Assertion assertion = new AssertionBuilder().buildObject(); assertion.setID(SAML2AuthUtils.createID()); assertion.setVersion(SAMLVersion.VERSION_20);
throws IdentityException { DateTime currentTime = new DateTime(); Assertion samlAssertion = new AssertionBuilder().buildObject(); samlAssertion.setID(SAMLSSOUtil.createID()); samlAssertion.setVersion(SAMLVersion.VERSION_20);
throws IdentityException { DateTime currentTime = new DateTime(); Assertion samlAssertion = new AssertionBuilder().buildObject(); samlAssertion.setID(SAMLSSOUtil.createID()); samlAssertion.setVersion(SAMLVersion.VERSION_20);
@Override public Assertion build() { AssertionBuilder assertionBuilder = (AssertionBuilder) xmlObjectBuilderFactory.getBuilder(Assertion.DEFAULT_ELEMENT_NAME); Assertion assertion = assertionBuilder.buildObject(); assertion.setID(id); assertion.setIssueInstant(issueInstant); assertion.setVersion(SAMLVersion.VERSION_20); assertion.setIssuer(issuer); assertion.setSubject(subject); assertion.setConditions(conditions); if(signature !=null){ assertion.setSignature(signature); } if(authnStatements.size() > 0){ for (AuthnStatement authnStatement : authnStatements) { assertion.getAuthnStatements().add(authnStatement); } } if(attributeStatements.size() > 0){ for (AttributeStatement attributeStatement : attributeStatements) { assertion.getAttributeStatements().add(attributeStatement); } } return assertion; }
try { DateTime currentTime = new DateTime(); Assertion samlAssertion = new AssertionBuilder().buildObject(); samlAssertion.setID(SAMLSSOUtil.createID()); samlAssertion.setVersion(SAMLVersion.VERSION_20);
.getBuilder(Assertion.DEFAULT_ELEMENT_NAME); DateTime currentTime = new DateTime(); Assertion assertion = assertionBuilder.buildObject(); assertion.setVersion(org.opensaml.common.SAMLVersion.VERSION_20); assertion.setIssuer(createIssuer());
AuthenticationResult authnResult = context.getAuthenticationResult(); DateTime currentTime = new DateTime(); Assertion samlAssertion = new AssertionBuilder().buildObject(); SAMLSSOServiceProviderDO samlssoServiceProviderDO = context.getSamlssoServiceProviderDO(); samlAssertion.setID(SAMLSSOUtil.createID());
.getBuilder(Assertion.DEFAULT_ELEMENT_NAME); DateTime currentTime = new DateTime(); Assertion assertion = assertionBuilder.buildObject(); assertion.setVersion(org.opensaml.common.SAMLVersion.VERSION_20); assertion.setIssuer(createIssuer());
.getBuilder(Assertion.DEFAULT_ELEMENT_NAME); DateTime currentTime = new DateTime(); Assertion assertion = assertionBuilder.buildObject(); assertion.setVersion(org.opensaml.common.SAMLVersion.VERSION_20); assertion.setIssuer(createIssuer());