public class SamlReader
extends java.lang.Object
Constructor and Description |
---|
SamlReader()
Creates a new instance of XmlUnmarshaler.
|
Modifier and Type | Method and Description |
---|---|
Message |
read(java.io.InputStream inputStream,
java.security.Key decryptionKey,
java.security.Key verificationKey) |
Message |
read(java.io.InputStream inputStream,
java.security.Key decryptionKey,
java.security.Key verificationKey,
boolean isSamlRequest)
Reads a response from the xml document contained in the given input stream.
|
public Message read(java.io.InputStream inputStream, java.security.Key decryptionKey, java.security.Key verificationKey, boolean isSamlRequest) throws SamlReaderException, java.io.IOException
inputStream
- InputStream containing the xml document to unmarshal.decryptionKey
- Private key used to decrypt encrypted assertions (dont decrypt if key is null)verificationKey
- The public key of the IdP to verify the XML signaturesisSamlRequest
- Whether we are handling a SamlRequest or a SamlResponse messageSamlReaderException
- An error occurred while unmarshaling the Response.java.io.IOException
- An error occurred while processing the InputStream
public Message read(java.io.InputStream inputStream, java.security.Key decryptionKey, java.security.Key verificationKey) throws SamlReaderException, java.io.IOException
SamlReaderException
java.io.IOException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"