Class RSAOAEPParameters

java.lang.Object
org.opensaml.xmlsec.encryption.support.RSAOAEPParameters

public class RSAOAEPParameters
extends Object
Class for representing parameter inputs to the RSA-OAEP key transport algorithm.
  • Field Details

    • digestMethod

      private String digestMethod
      Digest method algorithm URI.
    • maskGenerationFunction

      private String maskGenerationFunction
      Mask generation function (MGF) algorithm URI.
    • oaepParams

      private String oaepParams
      Base64-encoded OAEPParams value.
  • Constructor Details

    • RSAOAEPParameters

      public RSAOAEPParameters()
      Constructor.
    • RSAOAEPParameters

      public RSAOAEPParameters​(String digest, String mgf, String params)
      Constructor.
      Parameters:
      digest - the digest method
      mgf - the mask generation function (MGF)
      params - the OAEPParms (base64-encoded)
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Determine whether the parameters instance is empty, meaning it has no values populated for any data properties.
      Returns:
      true if all property values are null, false otherwise
    • isComplete

      public boolean isComplete()
      Determine whether the parameters instance is complete, meaning values are populated for all data properties.
      Returns:
      true if all property values are populated, false otherwise
    • getDigestMethod

      public String getDigestMethod()
      Get the digest method algorithm URI.
      Returns:
      the digest method URI
    • setDigestMethod

      public void setDigestMethod​(String value)
      Set the digest method algorithm URI.
      Parameters:
      value - the new digest method URI
    • getMaskGenerationFunction

      public String getMaskGenerationFunction()
      Get the mask generation function (MGF) algorithm URI.
      Returns:
      the MGF URI
    • setMaskGenerationFunction

      public void setMaskGenerationFunction​(String value)
      Set the mask generation function (MGF) algorithm URI.
      Parameters:
      value - the new MGF algorithm URI
    • getOAEPParams

      public String getOAEPParams()
      Get the base64-encoded OAEPParams value.
      Returns:
      the base64-encoded OAEPParams
    • setOAEPparams

      public void setOAEPparams​(String value)
      Set the base64-encoded OAEPParams value.
      Parameters:
      value - the new base64-encoded OAEPParams value