|
PicketLink Federation Core 2.1.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.picketlink.identity.federation.api.saml.v2.request.SAML2Request
public class SAML2Request
API for SAML2 Request
Constructor Summary | |
---|---|
SAML2Request()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAML2Request()
Method Detail |
---|
public void setNameIDFormat(String nameIDFormat)
nameIDFormat
- public AuthnRequestType createAuthnRequestType(String id, String assertionConsumerURL, String destination, String issuerValue) throws ConfigurationException
id
- assertionConsumerURL
- destination
- issuerValue
-
ConfigurationException
public AuthnRequestType getAuthnRequestType(String fileName) throws ConfigurationException, ProcessingException, ParsingException
fileName
- file with the serialized AuthnRequestType
ParsingException
ProcessingException
ConfigurationException
IllegalArgumentException
- if the input fileName is null IllegalStateException if the InputStream from the fileName
is nullpublic SAML2Object getSAML2ObjectFromStream(InputStream is) throws ConfigurationException, ParsingException, ProcessingException
is
-
IOException
ParsingException
ConfigurationException
ProcessingException
public RequestAbstractType getRequestType(InputStream is) throws ParsingException, ConfigurationException, ProcessingException
is
-
ProcessingException
ConfigurationException
IllegalArgumentException
- inputstream is null
ParsingException
public AuthnRequestType getAuthnRequestType(InputStream is) throws ConfigurationException, ProcessingException, ParsingException
is
- Inputstream containing the AuthnRequest
ParsingException
ProcessingException
ConfigurationException
IllegalArgumentException
- inputstream is nullpublic SAMLDocumentHolder getSamlDocumentHolder()
SAMLDocumentHolder
public LogoutRequestType createLogoutRequest(String issuer) throws ConfigurationException
issuer
-
ConfigurationException
public Document convert(RequestAbstractType rat) throws ProcessingException, ConfigurationException, ParsingException
rat
-
ProcessingException
ParsingException
ConfigurationException
public Document convert(ResponseType responseType) throws ProcessingException, ParsingException, ConfigurationException
responseType
-
ParserConfigurationException
ProcessingException
ParsingException
ConfigurationException
public void marshall(RequestAbstractType requestType, OutputStream os) throws ProcessingException
requestType
- os
-
SAXException
ProcessingException
public void marshall(RequestAbstractType requestType, Writer writer) throws ProcessingException
requestType
- writer
-
SAXException
ProcessingException
|
PicketLink Federation Core 2.1.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |