Package net.jini.security.proxytrust
Interface ProxyTrustIterator
- All Known Implementing Classes:
SingletonProxyTrustIterator
public interface ProxyTrustIterator
Defines an iterator that produces objects from which a
TrustVerifier
might be obtained. ProxyTrustVerifier obtains such iterators from instances of classes
that have a non-static member method with signature:
ProxyTrustIterator getProxyTrustIterator();The expectation is that each element produced by the iterator either implements
ProxyTrust or might have a getProxyTrustIterator method that can be used
recursively to obtain further candidates.- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()Returnstrueif the iteration has more elements, andfalseotherwise.next()Returns the next element in the iteration.voidProvides the iteration with aRemoteExceptionthrown from a remote call made while attempting to obtain aTrustVerifierfrom the object returned by the most recent call tonext.
-
Method Details
-
hasNext
boolean hasNext()Returnstrueif the iteration has more elements, andfalseotherwise.- Returns:
trueif the iteration has more elements, andfalseotherwise
-
next
Returns the next element in the iteration. This method can throw an exception (other thanNoSuchElementException) without terminating the iteration.- Returns:
- the next element in the iteration
- Throws:
NoSuchElementException- if the iteration has no more elementsRemoteException- if a communication-related exception occurs while producing the next elementRuntimeException- if a runtime exception occurs while producing the next element
-
setException
Provides the iteration with aRemoteExceptionthrown from a remote call made while attempting to obtain aTrustVerifierfrom the object returned by the most recent call tonext. Setting an exception may influence which (if any) elements are subsequently produced by the iteration. (ARemoteExceptionthrown directly bynextshould not be passed to this method.)- Parameters:
e-RemoteExceptionthrown from a remote call- Throws:
NullPointerException- if the argument isnullIllegalStateException- ifnexthas never been called, or if this method has already been called since the most recent call tonext, or ifhasNexthas been called since the most recent call tonext, or if the most recent call tonextthrew aRemoteException
-