Class TrustChainSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<TrustChain>
-
- com.nimbusds.openid.connect.sdk.federation.trust.TrustChainSet
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<TrustChain>,Collection<TrustChain>,Set<TrustChain>
public class TrustChainSet extends HashSet<TrustChain>
Trust chain set with methods forgetting the shortest chainandfiltering according to path length and entity ID constraints.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TrustChainSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TrustChainSetfilter(TrustChainConstraints constraints)Returns a filtered trust chain set according to constraints.TrustChaingetShortest()Returns the shortest trust chain in this set.-
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Constructor Detail
-
TrustChainSet
public TrustChainSet()
-
-
Method Detail
-
getShortest
public TrustChain getShortest()
Returns the shortest trust chain in this set.- Returns:
- The (first) shortest chain,
nullfor an empty set.
-
filter
public TrustChainSet filter(TrustChainConstraints constraints)
Returns a filtered trust chain set according to constraints.- Parameters:
constraints- The constraints. Must not benull.- Returns:
- The filtered trust chain set.
-
-