Package net.shibboleth.idp.saml.metadata
Class ScopesContainer
- java.lang.Object
-
- net.shibboleth.idp.saml.metadata.ScopesContainer
-
public class ScopesContainer extends Object
A container for all theScopeelements (attached to either aEntityDescriptor,IDPSSODescriptororAttributeAuthorityDescriptor).
-
-
Field Summary
Fields Modifier and Type Field Description private List<Predicate<String>>regexpScopesThe Regexp scopes.private Set<String>simpleScopesThe (non Regexp) scopes.
-
Constructor Summary
Constructors Constructor Description ScopesContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatchesScope(String scope)Does the provided string match the scopes for this XMLObject?voidsetRegexpScopes(Set<String> scopes)Sets the regexp scopes.voidsetSimpleScopes(Set<String> scopes)Sets the non-regexp Scopes.
-
-
-
Method Detail
-
setSimpleScopes
public void setSimpleScopes(@Nullable Set<String> scopes)Sets the non-regexp Scopes.
We force the input to be a set so as to enforce no duplicates and any performance hit as a result.- Parameters:
scopes- what to set.
-
setRegexpScopes
public void setRegexpScopes(@Nullable Set<String> scopes)Sets the regexp scopes.
We force the input to be a set so as to enforce no duplicates and any performance hit as a result.- Parameters:
scopes- what to set.
-
-