public class SAML2Request extends Object
| Constructor and Description |
|---|
SAML2Request() |
| Modifier and Type | Method and Description |
|---|---|
Document |
convert(RequestAbstractType rat)
Return the DOM object
|
Document |
convert(ResponseType responseType)
Convert a SAML2 Response into a Document
|
AuthnRequestType |
createAuthnRequestType(String id,
String assertionConsumerURL,
String destination,
String issuerValue)
Create an authentication request
|
LogoutRequestType |
createLogoutRequest(String issuer)
Create a Logout Request
|
AuthnRequestType |
getAuthnRequestType(InputStream is)
Get the AuthnRequestType from an input stream
|
AuthnRequestType |
getAuthnRequestType(String fileName)
Get AuthnRequestType from a file
|
RequestAbstractType |
getRequestType(InputStream is)
Get a Request Type from Input Stream
|
SAML2Object |
getSAML2ObjectFromStream(InputStream is)
Get the Underlying SAML2Object from the input stream
|
SAMLDocumentHolder |
getSamlDocumentHolder()
Get the parsed
SAMLDocumentHolder |
void |
marshall(RequestAbstractType requestType,
OutputStream os)
Marshall the AuthnRequestType to an output stream
|
void |
marshall(RequestAbstractType requestType,
Writer writer)
Marshall the AuthnRequestType to a writer
|
void |
setNameIDFormat(String nameIDFormat)
Set the NameIDFormat
|
public void setNameIDFormat(String nameIDFormat)
nameIDFormat - public AuthnRequestType createAuthnRequestType(String id, String assertionConsumerURL, String destination, String issuerValue) throws org.picketlink.common.exceptions.ConfigurationException
id - assertionConsumerURL - destination - issuerValue - org.picketlink.common.exceptions.ConfigurationExceptionpublic AuthnRequestType getAuthnRequestType(String fileName) throws org.picketlink.common.exceptions.ConfigurationException, org.picketlink.common.exceptions.ProcessingException, org.picketlink.common.exceptions.ParsingException
fileName - file with the serialized AuthnRequestTypeorg.picketlink.common.exceptions.ParsingExceptionorg.picketlink.common.exceptions.ProcessingExceptionorg.picketlink.common.exceptions.ConfigurationExceptionIllegalArgumentException - if the input fileName is null IllegalStateException if the InputStream from the fileName
is nullpublic SAML2Object getSAML2ObjectFromStream(InputStream is) throws org.picketlink.common.exceptions.ConfigurationException, org.picketlink.common.exceptions.ParsingException, org.picketlink.common.exceptions.ProcessingException
is - IOExceptionorg.picketlink.common.exceptions.ParsingExceptionorg.picketlink.common.exceptions.ConfigurationExceptionorg.picketlink.common.exceptions.ProcessingExceptionpublic RequestAbstractType getRequestType(InputStream is) throws org.picketlink.common.exceptions.ParsingException, org.picketlink.common.exceptions.ConfigurationException, org.picketlink.common.exceptions.ProcessingException
is - org.picketlink.common.exceptions.ProcessingExceptionorg.picketlink.common.exceptions.ConfigurationExceptionIllegalArgumentException - inputstream is nullorg.picketlink.common.exceptions.ParsingExceptionpublic AuthnRequestType getAuthnRequestType(InputStream is) throws org.picketlink.common.exceptions.ConfigurationException, org.picketlink.common.exceptions.ProcessingException, org.picketlink.common.exceptions.ParsingException
is - Inputstream containing the AuthnRequestorg.picketlink.common.exceptions.ParsingExceptionorg.picketlink.common.exceptions.ProcessingExceptionorg.picketlink.common.exceptions.ConfigurationExceptionIllegalArgumentException - inputstream is nullpublic SAMLDocumentHolder getSamlDocumentHolder()
SAMLDocumentHolderpublic LogoutRequestType createLogoutRequest(String issuer) throws org.picketlink.common.exceptions.ConfigurationException
issuer - org.picketlink.common.exceptions.ConfigurationExceptionpublic Document convert(RequestAbstractType rat) throws org.picketlink.common.exceptions.ProcessingException, org.picketlink.common.exceptions.ConfigurationException, org.picketlink.common.exceptions.ParsingException
rat - org.picketlink.common.exceptions.ProcessingExceptionorg.picketlink.common.exceptions.ParsingExceptionorg.picketlink.common.exceptions.ConfigurationExceptionpublic Document convert(ResponseType responseType) throws org.picketlink.common.exceptions.ProcessingException, org.picketlink.common.exceptions.ParsingException, org.picketlink.common.exceptions.ConfigurationException
responseType - ParserConfigurationExceptionorg.picketlink.common.exceptions.ProcessingExceptionorg.picketlink.common.exceptions.ParsingExceptionorg.picketlink.common.exceptions.ConfigurationExceptionpublic void marshall(RequestAbstractType requestType, OutputStream os) throws org.picketlink.common.exceptions.ProcessingException
requestType - os - SAXExceptionorg.picketlink.common.exceptions.ProcessingExceptionpublic void marshall(RequestAbstractType requestType, Writer writer) throws org.picketlink.common.exceptions.ProcessingException
requestType - writer - SAXExceptionorg.picketlink.common.exceptions.ProcessingExceptionCopyright © 2013 JBoss Inc.. All Rights Reserved.