org.jboss.identity.federation.api.util
Class DeflateUtil

java.lang.Object
  extended by org.jboss.identity.federation.api.util.DeflateUtil

public class DeflateUtil
extends java.lang.Object

Encoder of saml messages based on DEFLATE compression

Since:
Dec 11, 2008
Author:
Anil.Saldhana@redhat.com

Constructor Summary
DeflateUtil()
           
 
Method Summary
static java.io.InputStream decode(byte[] msgToDecode)
          DEFLATE decoding
static byte[] encode(byte[] message)
          Apply DEFLATE encoding
static byte[] encode(java.lang.String message)
          Apply DEFLATE encoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeflateUtil

public DeflateUtil()
Method Detail

encode

public static byte[] encode(byte[] message)
                     throws java.io.IOException
Apply DEFLATE encoding

Parameters:
message -
Returns:
Throws:
java.io.IOException

encode

public static byte[] encode(java.lang.String message)
                     throws java.io.IOException
Apply DEFLATE encoding

Parameters:
message -
Returns:
Throws:
java.io.IOException

decode

public static java.io.InputStream decode(byte[] msgToDecode)
DEFLATE decoding

Parameters:
msgToDecode - the message that needs decoding
Returns:


Copyright © 2009 JBoss Inc.. All Rights Reserved.