public static String extractResponse(String samlRequestParameter) throws Exception {
  Inflater decompresser=new Inflater(true);
  ByteArrayOutputStream byteArrayOutputStream=new ByteArrayOutputStream();
  InflaterOutputStream inflaterOutputStream=new InflaterOutputStream(byteArrayOutputStream,decompresser);
  inflaterOutputStream.write(Base64.decode(samlRequestParameter));
  inflaterOutputStream.close();
  String outputString=new String(byteArrayOutputStream.toByteArray(),"UTF-8");
  return outputString;
}

public static String extractResponse ( String samlRequestParameter ) throws Exception { Inflater decompresser = new Inflater ( true ) ; ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream ( ) ; InflaterOutputStream inflaterOutputStream = new InflaterOutputStream ( byteArrayOutputStream , decompresser ) ; inflaterOutputStream . write ( Base64 . decode ( samlRequestParameter ) ) ; inflaterOutputStream . close ( ) ; String outputString = new String ( byteArrayOutputStream . toByteArray ( ) , "UTF-8" ) ; return outputString ; }
return a decompressed and base64bit decoded slo response . this is used by extracting samlobject received via redirect binding where compression is applied .
