Package net.shibboleth.idp.saml.metadata
Class ScopesContainer
java.lang.Object
net.shibboleth.idp.saml.metadata.ScopesContainer
A container for all the
Scope
elements (attached to either a
EntityDescriptor
, IDPSSODescriptor
or
AttributeAuthorityDescriptor
).-
Field Summary
FieldsModifier and TypeFieldDescriptionThe Regexp scopes.The (non Regexp) scopes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
matchesScope
(String scope) Does the provided string match the scopes for this XMLObject?void
setRegexpScopes
(Set<String> scopes) Sets the regexp scopes.void
setSimpleScopes
(Set<String> scopes) Sets the non-regexp Scopes.
-
Field Details
-
simpleScopes
The (non Regexp) scopes. -
regexpScopes
The Regexp scopes.
-
-
Constructor Details
-
ScopesContainer
public ScopesContainer()
-
-
Method Details
-
setSimpleScopes
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
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.
-
matchesScope
Does the provided string match the scopes for this XMLObject?We test first against the non regexp scopes for the sake of performance.
- Parameters:
scope
- what to test.- Returns:
- whether it matches any of the scopes.
-