@ThreadSafe public class SAML2AssertionFactory extends Object
Related specifications:
Modifier and Type | Method and Description |
---|---|
static org.opensaml.saml2.core.Assertion |
create(SAML2AssertionDetails details,
String xmlDsigAlg,
org.opensaml.xml.security.credential.Credential credential)
Creates a new SAML 2.0 assertion.
|
static Element |
createAsElement(SAML2AssertionDetails details,
String xmlDsigAlg,
org.opensaml.xml.security.credential.Credential credential)
Creates a new SAML 2.0 assertion as an XML element.
|
static String |
createAsString(SAML2AssertionDetails details,
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 String |
createAsString(SAML2AssertionDetails details,
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, 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 Element createAsElement(SAML2AssertionDetails details, 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 String createAsString(SAML2AssertionDetails details, 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 String createAsString(SAML2AssertionDetails details, 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.