Enum Class RecordType

java.lang.Object
java.lang.Enum<RecordType>
codes.thischwa.cf.model.RecordType
All Implemented Interfaces:
Serializable, Comparable<RecordType>, Constable

public enum RecordType extends Enum<RecordType>
Enum representing various DNS getRecord types.

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 Constants
    Enum Constant
    Description
    Represents 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 Type
    Method
    Description
     
    static RecordType
    Returns the enum constant of this class with the specified name.
    static RecordType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • A

      public static final RecordType A
      Represents the DNS A getRecord type.

      The "A" getRecord type is used to map a domain name to an IPv4 address.

    • AAAA

      public static final RecordType AAAA
      Represents the DNS AAAA getRecord type.

      The "AAAA" getRecord type maps a domain name to an IPv6 address.

    • CAA

      public static final RecordType 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

      public static final RecordType 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

      public static final RecordType CNAME
      Represents the DNS CNAME (Canonical Name) getRecord type.

      The "CNAME" getRecord type is used to alias one domain name to another.

    • DNSKEY

      public static final RecordType 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

      public static final RecordType 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

      public static final RecordType 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

      public static final RecordType 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

      public static final RecordType 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

      public static final RecordType 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

      public static final RecordType 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

      public static final RecordType 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

      public static final RecordType 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

      public static final RecordType 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

      public static final RecordType 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

      public static final RecordType 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

      public static final RecordType 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

      public static final RecordType 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

      public static final RecordType 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

      public static final RecordType 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

      public static RecordType[] 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 RecordType 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<RecordType>