Package com.sun.identity.policy.plugins
Class HttpURLResourceName
- java.lang.Object
-
- org.forgerock.openam.shared.resourcename.BasePrefixResourceName<T,E>
-
- org.forgerock.openam.shared.resourcename.BaseURLResourceName<ResourceMatch,PolicyException>
-
- com.sun.identity.policy.plugins.URLResourceName
-
- com.sun.identity.policy.plugins.HttpURLResourceName
-
- All Implemented Interfaces:
ResourceName,BaseResourceName<ResourceMatch,PolicyException>
@Deprecated public class HttpURLResourceName extends URLResourceName
Deprecated.URLResourceNameshould be used in favour of this class ensuring the passed resources are normalised viaBaseURLResourceName.canonicalize(String).This class was no longer in sync with expected policy evaluation and moved away from the behaviour ofURLResourceNamewhich duplicates the behaviour ofURLResourceNamethat is used by the server when evaluation a policy request in self mode. To help reduce the cost of upgrade this class has been modified to ensure it continues with eager normalisation of resource URLs but otherwise delegates directly to its subclassURLResourceName.
-
-
Field Summary
-
Fields inherited from class org.forgerock.openam.shared.resourcename.BaseURLResourceName
comparator
-
Fields inherited from class org.forgerock.openam.shared.resourcename.BasePrefixResourceName
caseSensitive, debug, delimiter, exactMatch, noMatch, oneLevelWildcard, oneLevelWildcardEmbedded, oneLevelWildcardLength, subResourceMatch, superResourceMatch, wildcard, wildcardEmbedded, wildcardLength, wildcardMatch
-
-
Constructor Summary
Constructors Constructor Description HttpURLResourceName()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ResourceMatchcompare(String requestResource, String targetResource, boolean wildcardCompare)Deprecated.Specific comparison for URLs, where a wildcard in the host/port should not match any of the path.-
Methods inherited from class com.sun.identity.policy.plugins.URLResourceName
constructResourceInvalidException
-
Methods inherited from class org.forgerock.openam.shared.resourcename.BaseURLResourceName
canonicalize
-
Methods inherited from class org.forgerock.openam.shared.resourcename.BasePrefixResourceName
append, getServiceTypeNames, getSubResource, initialize, normalizeRequestResource, normalizeTargetResource, oneLevelWildcardCompare, split
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.forgerock.openam.shared.resourcename.BaseResourceName
append, canonicalize, getServiceTypeNames, getSubResource, initialize, split
-
-
-
-
Method Detail
-
compare
public ResourceMatch compare(String requestResource, String targetResource, boolean wildcardCompare)
Deprecated.Description copied from class:BaseURLResourceNameSpecific comparison for URLs, where a wildcard in the host/port should not match any of the path. Strings should be canonicalized prior to entering this comparison, else they will be compared by the super class' comparison function.- Specified by:
comparein interfaceBaseResourceName<ResourceMatch,PolicyException>- Overrides:
comparein classBaseURLResourceName<ResourceMatch,PolicyException>- Parameters:
requestResource- name of the resource which will be comparedtargetResource- name of the resource which will be compared withwildcardCompare- flag for wildcard comparison- Returns:
- If a wildcard is in the host/port, separately compares the path/query and scheme/host/port, returning NO_MATCH if any don't match. Otherwise returns the match of the port/path/query.
-
-