| Constructor and Description |
|---|
DefaultKeychain() |
DefaultKeychain(java.util.Collection<? extends Key> identities) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Key key) |
boolean |
addAll(java.util.Collection<? extends Key> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
Key |
currentKey() |
Keychain |
discard() |
Keychain |
filterAlgorithms(java.util.Collection<Algorithm> algorithms)
Filter this keychain by a
Collection of supported Algorithms |
java.util.Set<Algorithm> |
getAlgorithms() |
boolean |
isEmpty() |
java.util.Iterator<Key> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.util.Map<java.lang.String,Key> |
toMap(KeyId keyIdentifier) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic DefaultKeychain()
public DefaultKeychain(java.util.Collection<? extends Key> identities)
public java.util.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 java.util.Collection<Key>public boolean isEmpty()
public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<Key>public java.util.Iterator<Key> iterator()
public java.lang.Object[] toArray()
toArray in interface java.util.Collection<Key>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<Key>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<Key>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<Key>public boolean addAll(java.util.Collection<? extends Key> c)
addAll in interface java.util.Collection<Key>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<Key>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<Key>public void clear()
clear in interface java.util.Collection<Key>public Keychain discard()
public Key currentKey()
currentKey in interface Keychainjava.util.NoSuchElementException - if the keychain is emptypublic Keychain filterAlgorithms(java.util.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.