Class Util
- java.lang.Object
- 
- com.tibco.tibems.tibemsd.security.Util
 
- 
 public class Util extends java.lang.ObjectProvides some utility functions for implementors of authorization systems.
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringJAAS_CONFIG_REFRESHABLEEnables refresh of a jaas_config_file on authentication failure when the file has been modified.
 - 
Constructor SummaryConstructors Constructor Description Util()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisDestinationContainedBy(java.lang.String destination, java.lang.String wildcard)This will test whether the given destination is a subset of the given wildcard.static booleanisDestinationMatchedBy(java.lang.String destination1, java.lang.String destination2)Tests whether the two destinations are a match, in the general sense.static booleanisWildcard(java.lang.String destination)Tests for a wildcard destination.
 
- 
- 
- 
Field Detail- 
JAAS_CONFIG_REFRESHABLEpublic static final java.lang.String JAAS_CONFIG_REFRESHABLE Enables refresh of a jaas_config_file on authentication failure when the file has been modified.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
isDestinationContainedBypublic static boolean isDestinationContainedBy(java.lang.String destination, java.lang.String wildcard)This will test whether the given destination is a subset of the given wildcard. No checking is done for well-formed names."foo.*.bar", "foo.>"returns true."foo.>", "foo.*.bar"returns false."foo.*.bar", "foo.bar.*"returns false.- Parameters:
- destination-
- wildcard-
- Returns:
- true if the destination is a match for the wildcard.
 
 - 
isDestinationMatchedBypublic static boolean isDestinationMatchedBy(java.lang.String destination1, java.lang.String destination2)Tests whether the two destinations are a match, in the general sense."foo.*.bar", "foo.>"returns true."foo.>", "foo.*.bar"returns true."foo.*.bar", "foo.bar.*"returns true."foo.*", "bar"returns false.- Parameters:
- destination1-
- destination2-
- Returns:
- true if the destinations match.
 
 - 
isWildcardpublic static boolean isWildcard(java.lang.String destination) Tests for a wildcard destination. Any destination containing a ">" or a "*" token is considered a wildcard.- Parameters:
- destination-
- Returns:
- true if the destination contains a > or * token.
 
 
- 
 
-