public class IDPWebRequestUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
IDPWebRequestUtil.WebRequestUtilHolder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
canonicalizationMethod |
| Constructor and Description |
|---|
IDPWebRequestUtil(javax.servlet.http.HttpServletRequest request,
org.picketlink.config.federation.IDPType idp,
TrustKeyManager keym) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCanonicalizationMethod() |
String |
getDestination(String urlEncodedResponse,
String urlEncodedRelayState,
boolean supportSignature,
boolean sendRequest,
boolean errorResponse)
Generate a Destination URL for the HTTPRedirect binding with the saml response and relay state
|
Document |
getErrorResponse(String responseURL,
String status,
String identityURL,
boolean supportSignature)
Create an Error Response
|
IDPWebRequestUtil.WebRequestUtilHolder |
getHolder() |
SAMLDocumentHolder |
getSAMLDocumentHolder(String samlMessage) |
RequestAbstractType |
getSAMLRequest(String samlMessage) |
boolean |
hasSAMLRequestInPostProfile() |
boolean |
hasSAMLRequestInRedirectProfile() |
void |
isTrusted(String issuer)
Verify that the issuer is trusted
|
void |
send(IDPWebRequestUtil.WebRequestUtilHolder holder)
Send a response
|
void |
setCanonicalizationMethod(String canonicalizationMethod) |
protected String canonicalizationMethod
public IDPWebRequestUtil(javax.servlet.http.HttpServletRequest request,
org.picketlink.config.federation.IDPType idp,
TrustKeyManager keym)
public String getCanonicalizationMethod()
public void setCanonicalizationMethod(String canonicalizationMethod)
public boolean hasSAMLRequestInRedirectProfile()
public boolean hasSAMLRequestInPostProfile()
public SAMLDocumentHolder getSAMLDocumentHolder(String samlMessage) throws org.picketlink.common.exceptions.ParsingException, org.picketlink.common.exceptions.ConfigurationException, org.picketlink.common.exceptions.ProcessingException
org.picketlink.common.exceptions.ParsingExceptionorg.picketlink.common.exceptions.ConfigurationExceptionorg.picketlink.common.exceptions.ProcessingExceptionpublic RequestAbstractType getSAMLRequest(String samlMessage) throws org.picketlink.common.exceptions.ParsingException, org.picketlink.common.exceptions.ConfigurationException, org.picketlink.common.exceptions.ProcessingException
org.picketlink.common.exceptions.ParsingExceptionorg.picketlink.common.exceptions.ConfigurationExceptionorg.picketlink.common.exceptions.ProcessingExceptionpublic void isTrusted(String issuer) throws org.picketlink.common.exceptions.fed.IssuerNotTrustedException
issuer - org.picketlink.common.exceptions.fed.IssuerNotTrustedExceptionpublic void send(IDPWebRequestUtil.WebRequestUtilHolder holder) throws GeneralSecurityException, IOException
holder - GeneralSecurityExceptionIOExceptionpublic String getDestination(String urlEncodedResponse, String urlEncodedRelayState, boolean supportSignature, boolean sendRequest, boolean errorResponse)
urlEncodedResponse - urlEncodedRelayState - public IDPWebRequestUtil.WebRequestUtilHolder getHolder()
Copyright © 2013 JBoss Inc.. All Rights Reserved.