Class PrincipalIteratorAdapter

    • Constructor Detail

      • PrincipalIteratorAdapter

        public PrincipalIteratorAdapter​(java.util.Iterator<? extends java.security.Principal> iterator)
        Creates an adapter for the given Iterator of principals.
        Parameters:
        iterator - iterator of Principals
      • PrincipalIteratorAdapter

        public PrincipalIteratorAdapter​(java.util.Collection<? extends java.security.Principal> collection)
        Creates an iterator for the given collection of Principals.
        Parameters:
        collection - collection of Principal objects.
    • Method Detail

      • nextPrincipal

        @NotNull
        public @NotNull java.security.Principal nextPrincipal()
        Returns the next policy.
        Specified by:
        nextPrincipal in interface PrincipalIterator
        Returns:
        next policy.