Class DeviceList
- java.lang.Object
-
- com.pdftools.internal.NativeBase
-
- com.pdftools.internal.NativeObject
-
- com.pdftools.crypto.providers.pkcs11.DeviceList
-
- All Implemented Interfaces:
java.lang.Iterable<Device>,java.util.Collection<Device>,java.util.List<Device>
public class DeviceList extends NativeObject implements java.util.List<Device>
The list of devices managed by a PKCS#11 module
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, Device element)Not supported.booleanadd(Device element)Not supported.booleanaddAll(int index, java.util.Collection<? extends Device> elements)Not supported.booleanaddAll(java.util.Collection<? extends Device> elements)Not supported.voidclear()Not supported.booleancontains(java.lang.Object object)booleancontainsAll(java.util.Collection<?> objects)Deviceget(int index)DevicegetSingle()Get the single deviceintindexOf(java.lang.Object obj)booleanisEmpty()java.util.Iterator<Device>iterator()intlastIndexOf(java.lang.Object obj)java.util.ListIterator<Device>listIterator()java.util.ListIterator<Device>listIterator(int index)Deviceremove(int index)Not supported.booleanremove(java.lang.Object object)Not supported.booleanremoveAll(java.util.Collection<?> objects)Not supported.booleanretainAll(java.util.Collection<?> objects)Not supported.Deviceset(int index, Device element)Not supported.intsize()java.util.List<Device>subList(int fromIndex, int toIndex)java.lang.Object[]toArray()<T> T[]toArray(T[] array)-
Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
getSingle
public Device getSingle() throws NotFoundException
Get the single device
- Returns:
- Throws:
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 atDevice.getDescription()or itsSession.getCertificates().
-
addAll
public boolean addAll(java.util.Collection<? extends Device> elements)
Not supported.
-
addAll
public boolean addAll(int index, java.util.Collection<? extends Device> elements)Not supported.- Specified by:
addAllin interfacejava.util.List<Device>
-
contains
public boolean contains(java.lang.Object object)
-
containsAll
public boolean containsAll(java.util.Collection<?> objects)
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<Device> iterator()
-
listIterator
public java.util.ListIterator<Device> listIterator()
- Specified by:
listIteratorin interfacejava.util.List<Device>
-
listIterator
public java.util.ListIterator<Device> listIterator(int index)
- Specified by:
listIteratorin interfacejava.util.List<Device>
-
remove
public boolean remove(java.lang.Object object)
Not supported.
-
removeAll
public boolean removeAll(java.util.Collection<?> objects)
Not supported.
-
retainAll
public boolean retainAll(java.util.Collection<?> objects)
Not supported.
-
subList
public java.util.List<Device> subList(int fromIndex, int toIndex)
- Specified by:
subListin interfacejava.util.List<Device>
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] array)
-
size
public int size()
-
clear
public void clear()
Not supported.
-
indexOf
public int indexOf(java.lang.Object obj)
- Specified by:
indexOfin interfacejava.util.List<Device>
-
lastIndexOf
public int lastIndexOf(java.lang.Object obj)
- Specified by:
lastIndexOfin interfacejava.util.List<Device>
-
add
public boolean add(Device element)
Not supported.
-
add
public void add(int index, Device element)Not supported.- Specified by:
addin interfacejava.util.List<Device>
-
remove
public Device remove(int index)
Not supported.- Specified by:
removein interfacejava.util.List<Device>
-
-