public class KeyType extends MediaTypeParameter
Key property.
Supported versions: 2.1, 3.0, 4.0
| Modifier and Type | Field and Description |
|---|---|
static KeyType |
GPG |
static KeyType |
PGP |
static KeyType |
X509 |
extension, mediaTypevalue| Modifier and Type | Method and Description |
|---|---|
static Collection<KeyType> |
all()
Gets all of the parameter values that are defined as static constants in
this class.
|
static KeyType |
find(String type,
String mediaType,
String extension)
Searches for a parameter value that is defined as a static constant in
this class.
|
static KeyType |
get(String type,
String mediaType,
String extension)
Searches for a parameter value and creates one if it cannot be found.
|
equals, getExtension, getMediaType, hashCodegetSupportedVersions, getValue, isSupportedBy, toStringpublic static KeyType find(String type, String mediaType, String extension)
type - the TYPE parameter value to search for (e.g. "PGP") or null
to not search by this valuemediaType - the media type to search for (e.g.
"application/pgp-keys") or null to not search by this valueextension - the file extension to search for (excluding the ".",
e.g. "pgp") or null to not search by this valuepublic static KeyType get(String type, String mediaType, String extension)
== equality.type - the TYPE parameter value to search for (e.g. "PGP") or null
to not search by this valuemediaType - the media type to search for (e.g.
"application/pgp-keys") or null to not search by this valueextension - the file extension to search for (excluding the ".",
e.g. "pgp") or null to not search by this valuepublic static Collection<KeyType> all()
Copyright © 2012–2023 Michael Angstadt. All rights reserved.