public class SamlWriter
extends java.lang.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 java.lang.String |
DEFAULT_DIGEST_METHOD |
static java.lang.String |
DEFAULT_SIGNATURE_METHOD |
Constructor and Description |
---|
SamlWriter()
Creates a new instance of SamlWriter.
|
Modifier and Type | Method and Description |
---|---|
void |
setDigestMethod(java.lang.String digestMethod) |
void |
setSignatureMethod(java.lang.String signatureMethod) |
void |
write(Message message,
java.io.OutputStream out,
java.security.Key privateKey)
Marshals the given AuthnRequest as an xml document and writes it to the given output stream.
|
public static final java.lang.String DEFAULT_DIGEST_METHOD
public static final java.lang.String DEFAULT_SIGNATURE_METHOD
public void setDigestMethod(java.lang.String digestMethod)
public void setSignatureMethod(java.lang.String signatureMethod)
public void write(Message message, java.io.OutputStream out, java.security.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 - 2020 Adobe Systems Incorporated. All Rights Reserved"