Class DeflateUtil
java.lang.Object
org.keycloak.saml.processing.api.util.DeflateUtil
Encoder of saml messages based on DEFLATE compression
- Since:
- Dec 11, 2008
- Author:
- Anil.Saldhana@redhat.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic longMaximum size for inflating. -
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamdecode(byte[] msgToDecode) DEFLATE decodingstatic InputStreamdecode(byte[] msgToDecode, long maxInflatingSize) DEFLATE decodingstatic byte[]encode(byte[] message) Apply DEFLATE encodingstatic byte[]Apply DEFLATE encoding
-
Field Details
-
DEFAULT_MAX_INFLATING_SIZE
public static long DEFAULT_MAX_INFLATING_SIZEMaximum size for inflating. Default is 128KB like quarkus.http.limits.max-form-attribute-size.
-
-
Method Details
-
encode
Apply DEFLATE encoding- Parameters:
message-- Returns:
- Throws:
IOException
-
encode
Apply DEFLATE encoding- Parameters:
message-- Returns:
- Throws:
IOException
-
decode
DEFLATE decoding- Parameters:
msgToDecode- the message that needs decoding- Returns:
-
decode
DEFLATE decoding- Parameters:
msgToDecode- the message that needs decodingmaxInflatingSize- the maximum size to inflate, IOExceptio is thrown if more data is inflated- Returns:
-