Class SSHFPData
Corresponds to the binary representation of the
SSHFP (SSH
Fingerprint) RData
Example
SSHFPData rdata = SSHFPData.builder().algorithm(2).fptype(1).fingerprint("123456789abcdef67890123456789abcdef67890")
.build();
// or shortcut
SSHFPData rdata = SSHFPData.createDSA("123456789abcdef67890123456789abcdef67890");
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.common.collect.ForwardingMap
com.google.common.collect.ForwardingMap.StandardEntrySet, com.google.common.collect.ForwardingMap.StandardKeySet, com.google.common.collect.ForwardingMap.StandardValues -
Method Summary
Modifier and TypeMethodDescriptionstatic SSHFPData.Builderbuilder()static SSHFPDatastatic SSHFPDatadelegate()intThis algorithm number octet describes the algorithm of the public key.The fingerprint calculated over the public key blob.intgetType()The fingerprint fptype octet describes the message-digest algorithm used to calculate the fingerprint of the public key.Methods inherited from class com.google.common.collect.ForwardingMap
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, valuesMethods inherited from class com.google.common.collect.ForwardingObject
toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
createDSA
- Parameters:
fingerprint-DSASHA-1fingerprint
-
createRSA
- Parameters:
fingerprint-RSASHA-1fingerprint
-
getAlgorithm
public int getAlgorithm()This algorithm number octet describes the algorithm of the public key.- Returns:
- most often
1forRSAor2forDSA.
-
getType
public int getType()The fingerprint fptype octet describes the message-digest algorithm used to calculate the fingerprint of the public key.- Returns:
- most often
1forSHA-1
-
getFingerprint
The fingerprint calculated over the public key blob. -
builder
-
delegate
-