Enum Class SignMessageMimeTypeEnum

java.lang.Object
java.lang.Enum<SignMessageMimeTypeEnum>
se.swedenconnect.opensaml.sweid.saml2.signservice.dss.SignMessageMimeTypeEnum
All Implemented Interfaces:
Serializable, Comparable<SignMessageMimeTypeEnum>, Constable

public enum SignMessageMimeTypeEnum extends Enum<SignMessageMimeTypeEnum>
Enumeration that represents the possible values of the MimeType attribute of the SignMessage element.
Author:
Martin Lindström (martin@idsec.se)
  • Enum Constant Details

  • Method Details

    • values

      public static SignMessageMimeTypeEnum[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SignMessageMimeTypeEnum valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getMimeType

      public String getMimeType()
      Returns the string representation of the MIME type.
      Returns:
      the MIME type
    • parse

      public static SignMessageMimeTypeEnum parse(String mimeType)
      Parses the supplied MIME type into its corresponding enum value.
      Parameters:
      mimeType - the MIME type in string representation
      Returns:
      the enum value, or null if no match is found