Class AbstractChainingCredentialResolver.CredentialIterator

All Implemented Interfaces:
Enclosing class:
AbstractChainingCredentialResolver<ResolverType extends CredentialResolver>

public class AbstractChainingCredentialResolver.CredentialIterator extends Object implements Iterator<Credential>
Implementation of Iterator to be returned (indirectly) by ChainingCredentialResolver.
  • Field Details

  • Constructor Details

    • CredentialIterator

      public CredentialIterator(@Nonnull AbstractChainingCredentialResolver<ResolverType> resolver, @Nullable CriteriaSet criteriaSet)
      resolver - the chaining parent of this iterable
      criteriaSet - the set of criteria which is input to the underyling resolvers
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<Credential>
    • next

      public Credential next()
      Specified by:
      next in interface Iterator<Credential>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<Credential>
    • getNextCredentialIterator

      @Nullable private Iterator<Credential> getNextCredentialIterator()
      Get the iterator from the next resolver in the chain.
      an iterator of credentials, or null if none is available
    • getNextCredential

      @Nullable private Credential getNextCredential()
      Get the next credential that will be returned by this iterator.
      the next credential to return, or null if none is available