PicketLink Federation Core 2.1.6.Final-redhat-2

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

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

public class DeflateUtil
extends Object

Encoder of saml messages based on DEFLATE compression

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

Constructor Summary
DeflateUtil()
           
 
Method Summary
static InputStream decode(byte[] msgToDecode)
          DEFLATE decoding
static byte[] encode(byte[] message)
          Apply DEFLATE encoding
static byte[] encode(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 IOException
Apply DEFLATE encoding

Parameters:
message -
Returns:
Throws:
IOException

encode

public static byte[] encode(String message)
                     throws IOException
Apply DEFLATE encoding

Parameters:
message -
Returns:
Throws:
IOException

decode

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

Parameters:
msgToDecode - the message that needs decoding
Returns:

PicketLink Federation Core 2.1.6.Final-redhat-2

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