Package com.ellipticsecure.ehsm
Class ObjectHandleIterator
- java.lang.Object
-
- com.ellipticsecure.ehsm.ObjectHandleIterator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterator<com.sun.jna.NativeLong>
public class ObjectHandleIterator extends Object implements Closeable, Iterator<com.sun.jna.NativeLong>
This is a helper class to iterate over the security module objects. Use with try to ensure the iterator is closed.- Author:
- Kobus Grobler
-
-
Constructor Summary
Constructors Constructor Description ObjectHandleIterator(@NonNull EHSMLibrary lib, @NonNull com.sun.jna.NativeLong session, @NonNull CKAttribute[] attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanhasNext()com.sun.jna.NativeLongnext()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
ObjectHandleIterator
public ObjectHandleIterator(@NonNull @NonNull EHSMLibrary lib, @NonNull @NonNull com.sun.jna.NativeLong session, @NonNull @NonNull CKAttribute[] attributes)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
hasNext
public boolean hasNext()
-
-