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
Enumeration that represents the possible values of the
MimeType
attribute of the SignMessage
element.- Author:
- Martin Lindström (martin@idsec.se)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresents a sign message in text format.Represents HTML sign message format.Represents markdown sign message format. -
Method Summary
Modifier and TypeMethodDescriptionReturns the string representation of the MIME type.static SignMessageMimeTypeEnum
Parses the supplied MIME type into its corresponding enum value.static SignMessageMimeTypeEnum
Returns the enum constant of this class with the specified name.static SignMessageMimeTypeEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TEXT_HTML
Represents HTML sign message format. -
TEXT
Represents a sign message in text format. -
TEXT_MARKDOWN
Represents markdown sign message format.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getMimeType
Returns the string representation of the MIME type.- Returns:
- the MIME type
-
parse
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
-