public class DefaultKeychain extends Object implements Keychain, Collection<Key>
Keychain backed by a HashMap and
 modified via Collection methods| Constructor and Description | 
|---|
DefaultKeychain()  | 
DefaultKeychain(Collection<? extends Key> identities)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
add(Key key)  | 
boolean | 
addAll(Collection<? extends Key> c)  | 
void | 
clear()  | 
boolean | 
contains(Object o)  | 
boolean | 
containsAll(Collection<?> c)  | 
Key | 
currentKey()  | 
Keychain | 
discard()  | 
Keychain | 
filterAlgorithms(Collection<Algorithm> algorithms)
Filter this keychain by a  
Collection of supported Algorithms | 
Set<Algorithm> | 
getAlgorithms()  | 
boolean | 
isEmpty()  | 
Iterator<Key> | 
iterator()  | 
boolean | 
remove(Object o)  | 
boolean | 
removeAll(Collection<?> c)  | 
boolean | 
retainAll(Collection<?> c)  | 
int | 
size()  | 
Object[] | 
toArray()  | 
<T> T[] | 
toArray(T[] a)  | 
Map<String,Key> | 
toMap(KeyId keyIdentifier)  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic DefaultKeychain()
public DefaultKeychain(Collection<? extends Key> identities)
public Set<Algorithm> getAlgorithms()
getAlgorithms in interface KeychainSet containing the union of all algorithms supported by each Key in this Keychainpublic int size()
size in interface Collection<Key>public boolean isEmpty()
public boolean contains(Object o)
contains in interface Collection<Key>public Object[] toArray()
toArray in interface Collection<Key>public <T> T[] toArray(T[] a)
toArray in interface Collection<Key>public boolean add(Key key)
add in interface Collection<Key>public boolean remove(Object o)
remove in interface Collection<Key>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Key>public boolean addAll(Collection<? extends Key> c)
addAll in interface Collection<Key>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<Key>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<Key>public void clear()
clear in interface Collection<Key>public Keychain discard()
public Key currentKey()
currentKey in interface KeychainNoSuchElementException - if the keychain is emptypublic Keychain filterAlgorithms(Collection<Algorithm> algorithms)
KeychainCollection of supported AlgorithmsfilterAlgorithms in interface Keychainalgorithms - supported algorithmsKeychain containing only those keys which support at least one of the provided algorithmsCopyright © 2013-2017. All Rights Reserved.