Class DnssecKey

    • Method Detail

      • flags

        public final Integer flags()

        Defines the type of key. It can be either a KSK (key-signing-key, value 257) or ZSK (zone-signing-key, value 256). Using KSK is always encouraged. Only use ZSK if your DNS provider isn't Route 53 and you don’t have KSK available.

        If you have KSK and ZSK keys, always use KSK to create a delegations signer (DS) record. If you have ZSK keys only – use ZSK to create a DS record.

        Returns:
        Defines the type of key. It can be either a KSK (key-signing-key, value 257) or ZSK (zone-signing-key, value 256). Using KSK is always encouraged. Only use ZSK if your DNS provider isn't Route 53 and you don’t have KSK available.

        If you have KSK and ZSK keys, always use KSK to create a delegations signer (DS) record. If you have ZSK keys only – use ZSK to create a DS record.

      • publicKey

        public final String publicKey()

        The base64-encoded public key part of the key pair that is passed to the registry .

        Returns:
        The base64-encoded public key part of the key pair that is passed to the registry .
      • digestType

        public final Integer digestType()

        The number of the DS digest algorithm according to an IANA assignment.

        For more information, see IANA for DNSSEC Delegation Signer (DS) Resource Record (RR) Type Digest Algorithms.

        Returns:
        The number of the DS digest algorithm according to an IANA assignment.

        For more information, see IANA for DNSSEC Delegation Signer (DS) Resource Record (RR) Type Digest Algorithms.

      • digest

        public final String digest()

        The delegation signer digest.

        Digest is calculated from the public key provided using specified digest algorithm and this digest is the actual value returned from the registry nameservers as the value of DS records.

        Returns:
        The delegation signer digest.

        Digest is calculated from the public key provided using specified digest algorithm and this digest is the actual value returned from the registry nameservers as the value of DS records.

      • keyTag

        public final Integer keyTag()

        A numeric identification of the DNSKEY record referred to by this DS record.

        Returns:
        A numeric identification of the DNSKEY record referred to by this DS record.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)