Class SamlSecurity
java.lang.Object
org.codice.ddf.security.jaxrs.impl.SamlSecurity
- All Implemented Interfaces:
org.codice.ddf.security.jaxrs.SamlSecurity
public final class SamlSecurity
extends Object
implements org.codice.ddf.security.jaxrs.SamlSecurity
Provides methods that help with securing RESTful (jaxrs) communications.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbase64Decode(String base64EncodedValue) Decodes Base64 encoded valuesdeflateAndBase64Encode(String value) Deflates a value and Base64 encodes the result.inflateBase64(String base64EncodedValue)
-
Field Details
-
GZIP_COMPATIBLE
public static final boolean GZIP_COMPATIBLE- See Also:
-
-
Constructor Details
-
SamlSecurity
public SamlSecurity()
-
-
Method Details
-
deflateAndBase64Encode
Deflates a value and Base64 encodes the result.- Specified by:
deflateAndBase64Encodein interfaceorg.codice.ddf.security.jaxrs.SamlSecurity- Parameters:
value- value to deflate and Base64 encode- Returns:
- String
- Throws:
IOException- if the value cannot be converted
-
inflateBase64
- Specified by:
inflateBase64in interfaceorg.codice.ddf.security.jaxrs.SamlSecurity- Throws:
IOException
-
base64Decode
Decodes Base64 encoded values- Specified by:
base64Decodein interfaceorg.codice.ddf.security.jaxrs.SamlSecurity- Parameters:
base64EncodedValue- value to decode- Returns:
- decoded value
-