Enum Class RecordType
- All Implemented Interfaces:
Serializable,Comparable<RecordType>,Constable
Each constant in this enum corresponds to a specific DNS getRecord type, such as "A", "AAAA", "CNAME", or "TXT". This enum provides a means to standardize the representation of these getRecord types throughout the application while allowing easy retrieval of their string representation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents the DNS A getRecord type.Represents the DNS AAAA getRecord type.Represents the DNS CAA (Certificate Authority Authorization) getRecord type.Represents the DNS CERT getRecord type.Represents the DNS CNAME (Canonical Name) getRecord type.Represents the DNSKEY getRecord type.Represents the DNS DS (Delegation Signer) getRecord type.Represents the DNS HTTPS (HTTP Service) getRecord type.Represents the DNS LOC (Location) getRecord type.Represents the DNS MX (Mail Exchange) getRecord type.Represents the NAPTR getRecord type for DNS configurations.Represents the namespace or identifier `"NS"` within the domain model.Represents the "OPENPGPKEY" DNS getRecord type.Represents a DNS getRecord type.Represents the SMIMEA DNS getRecord type.Represents a service getRecord (SRV) type in the DNS configuration model.Represents the DNS getRecord type "SSHFP" (SSH Fingerprint), used in DNS to store cryptographic fingerprints associated with SSH host keys.Represents the Service Binding (SVCB) DNS getRecord type.Represents a constant for the DNS-based Authentication of Named Entities (DANE) TLSA getRecord type.Represents the TXT DNS getRecord type.Represents a Uniform Resource Identifier (URI). -
Method Summary
Modifier and TypeMethodDescriptiontoString()static RecordTypeReturns the enum constant of this class with the specified name.static RecordType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
A
Represents the DNS A getRecord type.The "A" getRecord type is used to map a domain name to an IPv4 address.
-
AAAA
Represents the DNS AAAA getRecord type.The "AAAA" getRecord type maps a domain name to an IPv6 address.
-
CAA
Represents the DNS CAA (Certificate Authority Authorization) getRecord type.The "CAA" getRecord type is used to specify which certificate authorities (CAs) are allowed to issue SSL/TLS certificates for a domain.
-
CERT
Represents the DNS CERT getRecord type.The "CERT" getRecord type is used to store certificates and related certificate revocation lists or certificate authority data in DNS zones.
-
CNAME
Represents the DNS CNAME (Canonical Name) getRecord type.The "CNAME" getRecord type is used to alias one domain name to another.
-
DNSKEY
Represents the DNSKEY getRecord type.The "DNSKEY" getRecord type is used for storing public keys in DNS, as part of the DNS Security Extensions (DNSSEC). It helps in verifying the authenticity of DNS responses through digital signatures.
-
DS
Represents the DNS DS (Delegation Signer) getRecord type.The "DS" getRecord type is used in the DNSSEC (Domain Name System Security Extensions) protocol. It contains a hash of a DNSKEY getRecord which is utilized in establishing a chain of trust from a parent zone to a child zone.
-
HTTPS
Represents the DNS HTTPS (HTTP Service) getRecord type.The "HTTPS" getRecord type is used to specify information about the HTTP/3 and related services offered by a domain.
-
LOC
Represents the DNS LOC (Location) getRecord type.The "LOC" getRecord type is used to store geographical location information for a domain, including latitude, longitude, altitude, and other details. It enables associating domains with physical locations.
-
MX
Represents the DNS MX (Mail Exchange) getRecord type.The "MX" getRecord type is used to specify the mail servers responsible for receiving email messages on behalf of a domain.
-
NAPTR
Represents the NAPTR getRecord type for DNS configurations.This constant is used to specify NAPTR (Naming Authority Pointer) DNS records, which allow for service discovery through flexible DNS-based mechanisms. NAPTR records are commonly used in applications such as VoIP and ENUM (Telephone Number Mapping) for resolving information about available services.
-
NS
Represents the namespace or identifier `"NS"` within the domain model.This variable typically designates elements related to name server operations or configurations in the context of the Cloudflare DNS system. It may be used as an identifier or constant throughout the application for operations involving name servers.
-
OPENPGPKEY
Represents the "OPENPGPKEY" DNS getRecord type.This constant is primarily used to identify DNS records of the type "OPENPGPKEY". It may be utilized within the system for operations such as creating, retrieving, updating, or managing DNS records specific to the "OPENPGPKEY" type.
-
PTR
Represents a DNS getRecord type.The `PTR` value specifically refers to a "pointer getRecord" in the DNS system, which is typically used for reverse DNS lookups.
-
SMIMEA
Represents the SMIMEA DNS getRecord type.The SMIMEA resource getRecord is used to associate a user's certificate information for email message signing or encryption. This type of DNS getRecord is part of the DNS-based Authentication of Named Entities (DANE) protocol.
SMIMEA records provide a mechanism for utilizing certificates in email communication securely by publishing their information in DNS. They ensure integrity and authenticity of encrypted or signed email exchanges.
Key features include:
- Use in Secure/Multipurpose Internet Mail Extensions (S/MIME)-based messaging.
- Facilitating secure email communications by publishing certificates in DNS.
- Enhancing security by eliminating dependency on third-party certificate authorities.
-
SRV
Represents a service getRecord (SRV) type in the DNS configuration model.This constant may be used to identify and work with SRV getRecord types in various DNS-related operations or integrations.
-
SSHFP
Represents the DNS getRecord type "SSHFP" (SSH Fingerprint), used in DNS to store cryptographic fingerprints associated with SSH host keys.This DNS getRecord type provides a mechanism for verifying the authenticity of an SSH server before initiating a connection, enhancing the security of SSH communications.
-
SVCB
Represents the Service Binding (SVCB) DNS getRecord type.The SVCB getRecord is a DNS resource getRecord used to indicate alternative endpoints or specific configuration details for services. It is commonly applied in service discovery and protocol-specific configurations.
-
TLSA
Represents a constant for the DNS-based Authentication of Named Entities (DANE) TLSA getRecord type.The TLSA getRecord is used to associate a TLS server certificate or public key with the domain name (e.g., via DNSSEC). It enables cryptographically secured connections by attaching certificate and key constraints to the specific domain.
-
TXT
Represents the TXT DNS getRecord type.The TXT DNS getRecord type is commonly used to store text-based information for various verification and configuration purposes, such as domain ownership verification or email authentication protocols (e.g., SPF, DKIM).
-
URI
Represents a Uniform Resource Identifier (URI).This variable is used to define and manage URIs, which are string identifiers commonly utilized to specify the location of resources in various network-based systems.
Features and usage:
- Provides a standard way of identifying resources via URI syntax.
- Can encapsulate support for schemes such as HTTP, HTTPS, FTP, etc.
This variable serves as a critical component for resource identification and communication operations within the application.
-
-
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
-
toString
- Overrides:
toStringin classEnum<RecordType>
-