org.jboss.identity.federation.bindings.util
Class RedirectBindingUtil

java.lang.Object
  extended by org.jboss.identity.federation.bindings.util.RedirectBindingUtil

public class RedirectBindingUtil
extends java.lang.Object

Utility class for SAML HTTP/Redirect binding

Since:
Jan 14, 2009
Author:
Anil.Saldhana@redhat.com

Constructor Summary
RedirectBindingUtil()
           
 
Method Summary
static java.io.InputStream base64DeflateDecode(java.lang.String encodedString)
          Base64 decode followed by Deflate decoding
static java.lang.String base64URLEncode(byte[] stringToEncode)
          On the byte array, apply base64 encoding following by URL encoding
static java.lang.String deflateBase64URLEncode(byte[] stringToEncode)
          Apply deflate compression followed by base64 encoding and URL encoding
static java.lang.String deflateBase64URLEncode(java.lang.String stringToEncode)
          Apply deflate compression followed by base64 encoding and URL encoding
static byte[] urlBase64Decode(java.lang.String encodedString)
          On the byte array, apply URL decoding followed by base64 decoding
static java.io.InputStream urlBase64DeflateDecode(java.lang.String encodedString)
          Apply URL decoding, followed by base64 decoding followed by deflate decompression
static java.lang.String urlDecode(java.lang.String str)
          URL decode the string
static java.lang.String urlEncode(java.lang.String str)
          URL encode the string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedirectBindingUtil

public RedirectBindingUtil()
Method Detail

urlEncode

public static java.lang.String urlEncode(java.lang.String str)
                                  throws java.lang.Exception
URL encode the string

Parameters:
str -
Returns:
Throws:
java.lang.Exception

urlDecode

public static java.lang.String urlDecode(java.lang.String str)
                                  throws java.lang.Exception
URL decode the string

Parameters:
str -
Returns:
Throws:
java.lang.Exception

base64URLEncode

public static java.lang.String base64URLEncode(byte[] stringToEncode)
                                        throws java.lang.Exception
On the byte array, apply base64 encoding following by URL encoding

Parameters:
stringToEncode -
Returns:
Throws:
java.lang.Exception

urlBase64Decode

public static byte[] urlBase64Decode(java.lang.String encodedString)
                              throws java.lang.Exception
On the byte array, apply URL decoding followed by base64 decoding

Parameters:
encodedString -
Returns:
Throws:
java.lang.Exception

deflateBase64URLEncode

public static java.lang.String deflateBase64URLEncode(java.lang.String stringToEncode)
                                               throws java.lang.Exception
Apply deflate compression followed by base64 encoding and URL encoding

Parameters:
stringToEncode -
Returns:
Throws:
java.lang.Exception

deflateBase64URLEncode

public static java.lang.String deflateBase64URLEncode(byte[] stringToEncode)
                                               throws java.lang.Exception
Apply deflate compression followed by base64 encoding and URL encoding

Parameters:
stringToEncode -
Returns:
Throws:
java.lang.Exception

urlBase64DeflateDecode

public static java.io.InputStream urlBase64DeflateDecode(java.lang.String encodedString)
                                                  throws java.lang.Exception
Apply URL decoding, followed by base64 decoding followed by deflate decompression

Parameters:
encodedString -
Returns:
Throws:
java.lang.Exception

base64DeflateDecode

public static java.io.InputStream base64DeflateDecode(java.lang.String encodedString)
                                               throws java.lang.Exception
Base64 decode followed by Deflate decoding

Parameters:
encodedString -
Returns:
Throws:
java.lang.Exception


Copyright © 2009 JBoss Inc.. All Rights Reserved.