String issuerURL = "http://www.sopera.de/SAML1";
org.opensaml.saml1.core.Assertion assertion = (new org.opensaml.saml1.core.impl.AssertionBuilder())
.buildObject();
try {
SecureRandomIdentifierGenerator generator = new SecureRandomIdentifierGenerator();
assertion.setID(generator.generateIdentifier());
} catch (NoSuchAlgorithmException e) {
LOG.log(Level.WARNING, e.getMessage(), e);
}
assertion.setIssuer(issuerURL);