public class SamlIDPWebRequestUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
SamlIDPWebRequestUtil.WebRequestUtilHolder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
canonicalizationMethod |
| Constructor and Description |
|---|
SamlIDPWebRequestUtil(javax.servlet.http.HttpServletRequest request,
org.picketlink.config.federation.IDPType idp,
org.picketlink.identity.federation.core.interfaces.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
|
SamlIDPWebRequestUtil.WebRequestUtilHolder |
getHolder() |
org.picketlink.identity.federation.core.saml.v2.common.SAMLDocumentHolder |
getSAMLDocumentHolder(String samlMessage) |
org.picketlink.identity.federation.saml.v2.protocol.RequestAbstractType |
getSAMLRequest(String samlMessage) |
boolean |
hasSAMLRequestInPostProfile() |
boolean |
hasSAMLRequestInRedirectProfile() |
void |
isTrusted(String issuer)
Verify that the issuer is trusted
|
void |
send(SamlIDPWebRequestUtil.WebRequestUtilHolder holder)
Send a response
|
void |
setCanonicalizationMethod(String canonicalizationMethod) |
protected String canonicalizationMethod
public SamlIDPWebRequestUtil(javax.servlet.http.HttpServletRequest request,
org.picketlink.config.federation.IDPType idp,
org.picketlink.identity.federation.core.interfaces.TrustKeyManager keym)
public String getCanonicalizationMethod()
public void setCanonicalizationMethod(String canonicalizationMethod)
public boolean hasSAMLRequestInRedirectProfile()
public boolean hasSAMLRequestInPostProfile()
public org.picketlink.identity.federation.core.saml.v2.common.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 org.picketlink.identity.federation.saml.v2.protocol.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(SamlIDPWebRequestUtil.WebRequestUtilHolder holder) throws GeneralSecurityException, IOException
holder - GeneralSecurityExceptionIOExceptionpublic String getDestination(String urlEncodedResponse, String urlEncodedRelayState, boolean supportSignature, boolean sendRequest, boolean errorResponse)
urlEncodedResponse - urlEncodedRelayState - public SamlIDPWebRequestUtil.WebRequestUtilHolder getHolder()
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.