PicketLink Federation Core 2.1.6.Final-redhat-2

org.picketlink.identity.federation.web.util
Class PostBindingUtil

java.lang.Object
  extended by org.picketlink.identity.federation.web.util.PostBindingUtil

public class PostBindingUtil
extends Object

Utility for the HTTP/Post binding

Since:
May 22, 2009
Author:
Anil.Saldhana@redhat.com

Constructor Summary
PostBindingUtil()
           
 
Method Summary
static byte[] base64Decode(String encodedString)
          Apply base64 decoding on the message and return the byte array
static InputStream base64DecodeAsStream(String encodedString)
          Apply base64 decoding on the message and return the stream
static String base64Encode(String stringToEncode)
          Apply base64 encoding on the message
static void sendPost(DestinationInfoHolder holder, javax.servlet.http.HttpServletResponse response, boolean request)
          Send the response to the redirected destination while adding the character encoding of "UTF-8" as well as adding headers for cache-control and Pragma
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostBindingUtil

public PostBindingUtil()
Method Detail

base64Encode

public static String base64Encode(String stringToEncode)
                           throws IOException
Apply base64 encoding on the message

Parameters:
stringToEncode -
Returns:
Throws:
IOException

base64Decode

public static byte[] base64Decode(String encodedString)
Apply base64 decoding on the message and return the byte array

Parameters:
encodedString -
Returns:

base64DecodeAsStream

public static InputStream base64DecodeAsStream(String encodedString)
Apply base64 decoding on the message and return the stream

Parameters:
encodedString -
Returns:

sendPost

public static void sendPost(DestinationInfoHolder holder,
                            javax.servlet.http.HttpServletResponse response,
                            boolean request)
                     throws IOException
Send the response to the redirected destination while adding the character encoding of "UTF-8" as well as adding headers for cache-control and Pragma

Parameters:
destination - Destination URI where the response needs to redirect
response - HttpServletResponse
Throws:
IOException

PicketLink Federation Core 2.1.6.Final-redhat-2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.