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 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 deviceint
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)
-
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:
addAll
in 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:
listIterator
in interfacejava.util.List<Device>
-
listIterator
public java.util.ListIterator<Device> listIterator(int index)
- Specified by:
listIterator
in 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:
subList
in 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:
indexOf
in interfacejava.util.List<Device>
-
lastIndexOf
public int lastIndexOf(java.lang.Object obj)
- Specified by:
lastIndexOf
in interfacejava.util.List<Device>
-
add
public boolean add(Device element)
Not supported.
-
add
public void add(int index, Device element)
Not supported.- Specified by:
add
in interfacejava.util.List<Device>
-
remove
public Device remove(int index)
Not supported.- Specified by:
remove
in interfacejava.util.List<Device>
-
-