java.lang.Iterable<Device>
, java.util.Collection<Device>
, java.util.List<Device>
public class DeviceList extends NativeObject implements java.util.List<Device>
Modifier and Type | Method | Description |
---|---|---|
void |
add(int index,
Device element) |
Not supported.
|
boolean |
add(Device element) |
Not supported.
|
boolean |
addAll(int index,
java.util.Collection<? extends Device> elements) |
Not supported.
|
boolean |
addAll(java.util.Collection<? extends Device> elements) |
Not supported.
|
void |
clear() |
Not supported.
|
boolean |
contains(java.lang.Object object) |
|
boolean |
containsAll(java.util.Collection<?> objects) |
|
Device |
get(int index) |
|
Device |
getSingle() |
Get the single device
|
int |
indexOf(java.lang.Object obj) |
|
boolean |
isEmpty() |
|
java.util.Iterator<Device> |
iterator() |
|
int |
lastIndexOf(java.lang.Object obj) |
|
java.util.ListIterator<Device> |
listIterator() |
|
java.util.ListIterator<Device> |
listIterator(int index) |
|
Device |
remove(int index) |
Not supported.
|
boolean |
remove(java.lang.Object object) |
Not supported.
|
boolean |
removeAll(java.util.Collection<?> objects) |
Not supported.
|
boolean |
retainAll(java.util.Collection<?> objects) |
Not supported.
|
Device |
set(int index,
Device element) |
Not supported.
|
int |
size() |
|
java.util.List<Device> |
subList(int fromIndex,
int toIndex) |
|
java.lang.Object[] |
toArray() |
|
<T> T[] |
toArray(T[] array) |
equals, hashCode, of, of, of, of, of, of, of, of, of, of, of, of, replaceAll, sort, spliterator
equals, hashCode
public Device getSingle() throws NotFoundException
NotFoundException
- No device was found.
Make sure the device is connected and the right PKCS#11 modules has been loaded.java.lang.UnsupportedOperationException
- More than one device available.
Choose the right one from the device list, e.g. by looking at Device.getDescription()
or its
Session.getCertificates()
.public boolean addAll(java.util.Collection<? extends Device> elements)
public boolean addAll(int index, java.util.Collection<? extends Device> elements)
addAll
in interface java.util.List<Device>
public boolean contains(java.lang.Object object)
public boolean containsAll(java.util.Collection<?> objects)
public boolean isEmpty()
public java.util.Iterator<Device> iterator()
public java.util.ListIterator<Device> listIterator()
listIterator
in interface java.util.List<Device>
public java.util.ListIterator<Device> listIterator(int index)
listIterator
in interface java.util.List<Device>
public boolean remove(java.lang.Object object)
public boolean removeAll(java.util.Collection<?> objects)
public boolean retainAll(java.util.Collection<?> objects)
public java.util.List<Device> subList(int fromIndex, int toIndex)
subList
in interface java.util.List<Device>
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] array)
public int size()
public void clear()
public int indexOf(java.lang.Object obj)
indexOf
in interface java.util.List<Device>
public int lastIndexOf(java.lang.Object obj)
lastIndexOf
in interface java.util.List<Device>
public boolean add(Device element)
public void add(int index, Device element)
add
in interface java.util.List<Device>
public Device remove(int index)
remove
in interface java.util.List<Device>