public class FingerprintKeyStorage extends Object
| Constructor and Description |
|---|
FingerprintKeyStorage(File directory) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(KeyPair keypair) |
void |
addAll(Iterable<KeyPair> keypairs) |
void |
clear() |
boolean |
contains(KeyPair keypair) |
boolean |
contains(String fingerprint) |
protected void |
deleteFile(String fingerprint,
KeyPair keypair) |
protected static String |
fingerprint(KeyPair keypair)
Creates a (normalised) fingerprint of a keypair
|
KeyPair |
get(String fingerprint) |
Set<KeyPair> |
getAll()
Returns a read-only set containing a list of all the keypairs currently in storage
|
protected File |
getFile(String fingerprint,
KeyPair keypair) |
protected static String |
normalise(String fingerprint)
Normalises an existing fingerprint
|
void |
remove(KeyPair keypair) |
void |
remove(String fingerprint) |
void |
removeAll(Iterable<KeyPair> keypairs) |
protected void |
scanAll() |
int |
size() |
protected void |
writeFile(String fingerprint,
KeyPair keypair) |
public FingerprintKeyStorage(File directory)
protected void scanAll()
public Set<KeyPair> getAll()
public boolean contains(String fingerprint)
public void add(KeyPair keypair)
public void remove(KeyPair keypair)
public void clear()
public int size()
public boolean contains(KeyPair keypair)
public void remove(String fingerprint)
protected static String fingerprint(KeyPair keypair)
Copyright © 2014. All rights reserved.