org.picketlink.identity.federation.web.util
Class IDPWebRequestUtil
java.lang.Object
org.picketlink.identity.federation.web.util.IDPWebRequestUtil
public class IDPWebRequestUtil
- extends Object
Request Util Not thread safe
- Since:
- May 18, 2009
- Author:
- Anil.Saldhana@redhat.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
canonicalizationMethod
protected String canonicalizationMethod
IDPWebRequestUtil
public IDPWebRequestUtil(javax.servlet.http.HttpServletRequest request,
IDPType idp,
TrustKeyManager keym)
getCanonicalizationMethod
public String getCanonicalizationMethod()
setCanonicalizationMethod
public void setCanonicalizationMethod(String canonicalizationMethod)
hasSAMLRequestInRedirectProfile
public boolean hasSAMLRequestInRedirectProfile()
hasSAMLRequestInPostProfile
public boolean hasSAMLRequestInPostProfile()
getSAMLDocumentHolder
public SAMLDocumentHolder getSAMLDocumentHolder(String samlMessage)
throws ParsingException,
ConfigurationException,
ProcessingException
- Throws:
ParsingException
ConfigurationException
ProcessingException
getSAMLRequest
public RequestAbstractType getSAMLRequest(String samlMessage)
throws ParsingException,
ConfigurationException,
ProcessingException
- Throws:
ParsingException
ConfigurationException
ProcessingException
isTrusted
public void isTrusted(String issuer)
throws IssuerNotTrustedException
- Verify that the issuer is trusted
- Parameters:
issuer
-
- Throws:
IssuerNotTrustedException
send
public void send(IDPWebRequestUtil.WebRequestUtilHolder holder)
throws GeneralSecurityException,
IOException
- Send a response
- Parameters:
holder
-
- Throws:
GeneralSecurityException
IOException
getDestination
public 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
- Parameters:
urlEncodedResponse
- urlEncodedRelayState
-
- Returns:
getHolder
public IDPWebRequestUtil.WebRequestUtilHolder getHolder()
getErrorResponse
public Document getErrorResponse(String responseURL,
String status,
String identityURL,
boolean supportSignature)
- Create an Error Response
- Parameters:
responseURL
- status
- identityURL
- supportSignature
-
- Returns:
-
- Throws:
ConfigurationException
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.