Class DeviceList
java.lang.Object
com.pdftools.internal.NativeBase
com.pdftools.internal.NativeObject
com.pdftools.crypto.providers.pkcs11.DeviceList
The list of devices managed by a PKCS#11 module
-
Method Summary
Modifier and TypeMethodDescriptionvoidNot supported.booleanNot supported.booleanaddAll(int index, Collection<? extends Device> elements) Not supported.booleanaddAll(Collection<? extends Device> elements) Not supported.voidclear()Not supported.booleanbooleancontainsAll(Collection<?> objects) get(int index) Get the single deviceintbooleanisEmpty()iterator()intlastIndexOf(Object obj) listIterator(int index) remove(int index) Not supported.booleanNot supported.booleanremoveAll(Collection<?> objects) Not supported.booleanretainAll(Collection<?> objects) Not supported.Not supported.intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] array) Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCodeMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Method Details
-
getSingle
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.UnsupportedOperationException- More than one device available. Choose the right one from the device list, e.g. by looking atDevice.getDescription()or itsSession.getCertificates().
-
addAll
Not supported. -
addAll
Not supported. -
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<Device>- Specified by:
containsAllin interfaceList<Device>
-
isEmpty
public boolean isEmpty() -
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList<Device>
-
listIterator
- Specified by:
listIteratorin interfaceList<Device>
-
remove
Not supported. -
removeAll
Not supported. -
retainAll
Not supported. -
subList
-
toArray
-
toArray
public <T> T[] toArray(T[] array) -
size
public int size() -
clear
public void clear()Not supported. -
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Device>
-
add
Not supported. -
add
Not supported. -
get
-
remove
Not supported. -
set
Not supported.
-