org.jclouds.digitalocean.predicates
Class SameFingerprint

java.lang.Object
  extended by org.jclouds.digitalocean.predicates.SameFingerprint
All Implemented Interfaces:
com.google.common.base.Predicate<SshKey>

public class SameFingerprint
extends Object
implements com.google.common.base.Predicate<SshKey>

Predicate to compare SSH keys by fingerprint.


Field Summary
 String fingerprint
           
 
Constructor Summary
SameFingerprint(PublicKey key)
           
 
Method Summary
 boolean apply(SshKey key)
           
static String computeFingerprint(PublicKey key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Predicate
equals
 

Field Detail

fingerprint

public final String fingerprint
Constructor Detail

SameFingerprint

public SameFingerprint(PublicKey key)
Method Detail

apply

public boolean apply(SshKey key)
Specified by:
apply in interface com.google.common.base.Predicate<SshKey>

computeFingerprint

public static String computeFingerprint(PublicKey key)


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.