Class SSHFPData
-
public class SSHFPData extends com.google.common.collect.ForwardingMap<String,Object>
Corresponds to the binary representation of theSSHFP(SSH Fingerprint) RDataExample
SSHFPData rdata = SSHFPData.builder().algorithm(2).fptype(1).fingerprint("123456789abcdef67890123456789abcdef67890") .build(); // or shortcut SSHFPData rdata = SSHFPData.createDSA("123456789abcdef67890123456789abcdef67890");- See Also:
- RFC 4255
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSSHFPData.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SSHFPData.Builderbuilder()static SSHFPDatacreateDSA(String fingerprint)static SSHFPDatacreateRSA(String fingerprint)protected Map<String,Object>delegate()intgetAlgorithm()This algorithm number octet describes the algorithm of the public key.StringgetFingerprint()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, values
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
createDSA
public static SSHFPData createDSA(String fingerprint)
- Parameters:
fingerprint-DSASHA-1fingerprint
-
createRSA
public static SSHFPData createRSA(String fingerprint)
- 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
public String getFingerprint()
The fingerprint calculated over the public key blob.
-
builder
public static SSHFPData.Builder builder()
-
-