public class SamlWriter extends Object
DEFAULT_DIGEST_METHOD and signature DEFAULT_SIGNATURE_METHOD algorithms,
to sign SAML messages, unless reconfigured using the respective setter methods.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DIGEST_METHOD |
static String |
DEFAULT_SIGNATURE_METHOD |
| Constructor and Description |
|---|
SamlWriter()
Creates a new instance of SamlWriter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setDigestMethod(String digestMethod) |
void |
setSignatureMethod(String signatureMethod) |
void |
write(Message message,
OutputStream out,
Key privateKey)
Marshals the given AuthnRequest as an xml document and writes it to the given output stream.
|
public static final String DEFAULT_DIGEST_METHOD
public static final String DEFAULT_SIGNATURE_METHOD
public void setDigestMethod(String digestMethod)
public void setSignatureMethod(String signatureMethod)
public void write(Message message, OutputStream out, Key privateKey) throws SamlWriterException
message - AuthnRequest to marshal.privateKey - The private Key of this SP to sign the authentication request (may be null)out - OutputStream to write the xml document to.SamlWriterException - An error occurred while marshaling the request."Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"