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 Details

  • Constructor Details

    • SamlSecurity

      public SamlSecurity()
  • Method Details

    • deflateAndBase64Encode

      public String deflateAndBase64Encode(String value) throws IOException
      Deflates a value and Base64 encodes the result.
      Specified by:
      deflateAndBase64Encode in interface org.codice.ddf.security.jaxrs.SamlSecurity
      Parameters:
      value - value to deflate and Base64 encode
      Returns:
      String
      Throws:
      IOException - if the value cannot be converted
    • inflateBase64

      public String inflateBase64(String base64EncodedValue) throws IOException
      Specified by:
      inflateBase64 in interface org.codice.ddf.security.jaxrs.SamlSecurity
      Throws:
      IOException
    • base64Decode

      public String base64Decode(String base64EncodedValue)
      Decodes Base64 encoded values
      Specified by:
      base64Decode in interface org.codice.ddf.security.jaxrs.SamlSecurity
      Parameters:
      base64EncodedValue - value to decode
      Returns:
      decoded value