Package org.xbill.DNS
Class SSHFPRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.SSHFPRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
SSH Fingerprint - stores the fingerprint of an SSH host key.
- Author:
- Brian Wellington
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSSHFPRecord(Name name, int dclass, long ttl, int alg, int digestType, byte[] fingerprint) Creates an SSHFP Record from the given data. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the public key's algorithm.intReturns the public key's digest type.byte[]Returns the fingerprintprotected voidrdataFromString(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected voidrrFromWire(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected StringConverts the type-specific RR to text format - must be overridden.protected voidrrToWire(DNSOutput out, Compression c, boolean canonical) Converts the type-specific RR to wire format - must be overridden.Methods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
-
Constructor Details
-
SSHFPRecord
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
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord- Throws:
IOException
-
rdataFromString
Description copied from class:RecordConverts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromStringin classRecord- Throws:
IOException
-
rrToString
Description copied from class:RecordConverts the type-specific RR to text format - must be overridden.- Specified by:
rrToStringin classRecord
-
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
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-