@ThreadSafe public class SAML2AssertionFactory extends java.lang.Object
Related specifications:
| Modifier and Type | Method and Description |
|---|---|
static org.opensaml.saml2.core.Assertion |
create(SAML2AssertionDetails details,
java.lang.String xmlDsigAlg,
org.opensaml.xml.security.credential.Credential credential)
Creates a new SAML 2.0 assertion.
|
static org.w3c.dom.Element |
createAsElement(SAML2AssertionDetails details,
java.lang.String xmlDsigAlg,
org.opensaml.xml.security.credential.Credential credential)
Creates a new SAML 2.0 assertion as an XML element.
|
static java.lang.String |
createAsString(SAML2AssertionDetails details,
java.security.interfaces.RSAPrivateKey rsaPrivateKey)
Creates a new SAML 2.0 assertion as an XML string, signed with the
RSA-SHA256 XML digital signature algorithm (mandatory to implement).
|
static java.lang.String |
createAsString(SAML2AssertionDetails details,
java.lang.String xmlDsigAlg,
org.opensaml.xml.security.credential.Credential credential)
Creates a new SAML 2.0 assertion as an XML string.
|
public static org.opensaml.saml2.core.Assertion create(SAML2AssertionDetails details, java.lang.String xmlDsigAlg, org.opensaml.xml.security.credential.Credential credential)
details - The SAML 2.0 bearer assertion details. Must not
be null.xmlDsigAlg - The XML digital signature algorithm. Must not be
null.credential - The appropriate credentials to facilitate signing
of the assertion.SerializeException - If serialisation or signing failed.public static org.w3c.dom.Element createAsElement(SAML2AssertionDetails details, java.lang.String xmlDsigAlg, org.opensaml.xml.security.credential.Credential credential)
details - The SAML 2.0 bearer assertion details. Must not
be null.xmlDsigAlg - The XML digital signature algorithm. Must not be
null.credential - The appropriate credentials to facilitate signing
of the assertion.SerializeException - If serialisation or signing failed.public static java.lang.String createAsString(SAML2AssertionDetails details, java.lang.String xmlDsigAlg, org.opensaml.xml.security.credential.Credential credential)
details - The SAML 2.0 bearer assertion details. Must not
be null.xmlDsigAlg - The XML digital signature algorithm. Must not be
null.credential - The appropriate credentials to facilitate signing
of the assertion.SerializeException - If serialisation or signing failed.public static java.lang.String createAsString(SAML2AssertionDetails details, java.security.interfaces.RSAPrivateKey rsaPrivateKey)
details - The SAML 2.0 bearer assertion details. Must not
be null.rsaPrivateKey - The private RSA key to sign the assertion. Must
not be null.SerializeException - If serialisation or signing failed.Copyright © 2016 Connect2id Ltd.. All Rights Reserved.