Class SSHFPData

java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingMap<String,Object>
org.jclouds.dynect.v3.domain.rdata.SSHFPData
All Implemented Interfaces:
Map<String,Object>

public class SSHFPData extends com.google.common.collect.ForwardingMap<String,Object>
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 Classes
    Modifier and Type
    Class
    Description
    static final class 
     

    Nested 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

    Nested classes/interfaces inherited from interface java.util.Map

    Map.Entry<K,V>
  • Method Summary

    Modifier and Type
    Method
    Description
     
    static SSHFPData
    createDSA(String fingerprint)
     
    static SSHFPData
    createRSA(String fingerprint)
     
    protected Map<String,Object>
     
    int
    This algorithm number octet describes the algorithm of the public key.
    The fingerprint calculated over the public key blob.
    int
    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 com.google.common.collect.ForwardingObject

    toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • createDSA

      public static SSHFPData createDSA(String fingerprint)
      Parameters:
      fingerprint - DSA SHA-1 fingerprint
    • createRSA

      public static SSHFPData createRSA(String fingerprint)
      Parameters:
      fingerprint - RSA SHA-1 fingerprint
    • getAlgorithm

      public int getAlgorithm()
      This algorithm number octet describes the algorithm of the public key.
      Returns:
      most often 1 for RSA or 2 for DSA.
    • 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 1 for SHA-1
    • getFingerprint

      public String getFingerprint()
      The fingerprint calculated over the public key blob.
    • builder

      public static SSHFPData.Builder builder()
    • delegate

      protected Map<String,Object> delegate()
      Specified by:
      delegate in class com.google.common.collect.ForwardingMap<String,Object>