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(HttpServletRequest request,
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) |
void |
setRedirectProfile(boolean redirectProfile) |
protected String canonicalizationMethod
public IDPWebRequestUtil(HttpServletRequest request, IDPType idp, TrustKeyManager keym)
public String getCanonicalizationMethod()
public void setCanonicalizationMethod(String canonicalizationMethod)
public boolean hasSAMLRequestInRedirectProfile()
public boolean hasSAMLRequestInPostProfile()
public SAMLDocumentHolder getSAMLDocumentHolder(String samlMessage) throws ParsingException, ConfigurationException, ProcessingException
public RequestAbstractType getSAMLRequest(String samlMessage) throws ParsingException, ConfigurationException, ProcessingException
public void isTrusted(String issuer) throws IssuerNotTrustedException
issuer
- IssuerNotTrustedException
public void send(IDPWebRequestUtil.WebRequestUtilHolder holder) throws GeneralSecurityException, IOException
holder
- GeneralSecurityException
IOException
public String getDestination(String urlEncodedResponse, String urlEncodedRelayState, boolean supportSignature, boolean sendRequest, boolean errorResponse)
urlEncodedResponse
- urlEncodedRelayState
- public IDPWebRequestUtil.WebRequestUtilHolder getHolder()
public Document getErrorResponse(String responseURL, String status, String identityURL, boolean supportSignature)
responseURL
- status
- identityURL
- supportSignature
- ConfigurationException
public void setRedirectProfile(boolean redirectProfile)
Copyright © 2021 JBoss by Red Hat. All rights reserved.