Package org.xbill.DNS

Class SSHFPRecord

java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.SSHFPRecord
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Record>

public class SSHFPRecord extends Record
SSH Fingerprint - stores the fingerprint of an SSH host key.
Author:
Brian Wellington
See Also:
  • Constructor Details

    • SSHFPRecord

      public SSHFPRecord(Name name, int dclass, long ttl, int alg, int digestType, byte[] fingerprint)
      Creates an SSHFP Record from the given data.
      Parameters:
      alg - The public key's algorithm.
      digestType - The public key's digest type.
      fingerprint - The public key's fingerprint.
  • Method Details

    • rrFromWire

      protected void rrFromWire(DNSInput in) throws IOException
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden
      Specified by:
      rrFromWire in class Record
      Throws:
      IOException
    • rdataFromString

      protected void rdataFromString(Tokenizer st, Name origin) throws IOException
      Description copied from class: Record
      Converts the text format of an RR to the internal format - must be overriden
      Specified by:
      rdataFromString in class Record
      Throws:
      IOException
    • rrToString

      protected String rrToString()
      Description copied from class: Record
      Converts the type-specific RR to text format - must be overridden.
      Specified by:
      rrToString in class Record
    • getAlgorithm

      public int getAlgorithm()
      Returns the public key's algorithm.
    • getDigestType

      public int getDigestType()
      Returns the public key's digest type.
    • getFingerPrint

      public byte[] getFingerPrint()
      Returns the fingerprint
    • rrToWire

      protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden.
      Specified by:
      rrToWire in class Record