Package org.apache.activemq.shiro.authz
Class ActiveMQWildcardPermission
- java.lang.Object
-
- org.apache.shiro.authz.permission.WildcardPermission
-
- org.apache.activemq.shiro.authz.ActiveMQWildcardPermission
-
- All Implemented Interfaces:
Serializable
,org.apache.shiro.authz.Permission
public class ActiveMQWildcardPermission extends org.apache.shiro.authz.permission.WildcardPermission
- Since:
- 5.10.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActiveMQWildcardPermission(String wildcardString)
ActiveMQWildcardPermission(String wildcardString, boolean caseSensitive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Set<String>>
doGetPartsByReflection(org.apache.shiro.authz.permission.WildcardPermission wp)
protected List<Set<String>>
getParts(org.apache.shiro.authz.permission.WildcardPermission wp)
protected List<Set<String>>
getPartsByReflection(org.apache.shiro.authz.permission.WildcardPermission wp)
boolean
implies(org.apache.shiro.authz.Permission p)
protected boolean
matches(String pattern, String value)
Tests whether or not a string matches against a pattern.String
toString()
-
-
-
Method Detail
-
implies
public boolean implies(org.apache.shiro.authz.Permission p)
- Specified by:
implies
in interfaceorg.apache.shiro.authz.Permission
- Overrides:
implies
in classorg.apache.shiro.authz.permission.WildcardPermission
-
matches
protected boolean matches(String pattern, String value)
Tests whether or not a string matches against a pattern. The pattern may contain two special characters:
'*' means zero or more characters
'?' means one and only one character- Parameters:
pattern
- pattern to match against. Must not benull
.value
- string which must be matched against the pattern. Must not benull
.- Returns:
true
if the string matches against the pattern, orfalse
otherwise.
-
getParts
protected List<Set<String>> getParts(org.apache.shiro.authz.permission.WildcardPermission wp)
-
getPartsByReflection
protected List<Set<String>> getPartsByReflection(org.apache.shiro.authz.permission.WildcardPermission wp)
-
doGetPartsByReflection
protected List<Set<String>> doGetPartsByReflection(org.apache.shiro.authz.permission.WildcardPermission wp) throws Exception
- Throws:
Exception
-
toString
public String toString()
- Overrides:
toString
in classorg.apache.shiro.authz.permission.WildcardPermission
-
-