AttributePolicy.JoinableAttributePolicyFilterUrlByProtocolAttributePolicypublic interface AttributePolicy
HtmlPolicyBuilder.AttributeBuilder.matching(AttributePolicy)| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
AttributePolicy.JoinableAttributePolicy |
An attribute policy that is joinable.
|
static class |
AttributePolicy.Util |
Utilities for working with attribute policies.
|
| Modifier and Type | Field | Description |
|---|---|---|
static AttributePolicy |
IDENTITY_ATTRIBUTE_POLICY |
An attribute policy that returns the value unchanged.
|
static AttributePolicy |
REJECT_ALL_ATTRIBUTE_POLICY |
An attribute policy that rejects all values.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
apply(java.lang.String elementName,
java.lang.String attributeName,
java.lang.String value) |
static final AttributePolicy IDENTITY_ATTRIBUTE_POLICY
static final AttributePolicy REJECT_ALL_ATTRIBUTE_POLICY
@Nullable
java.lang.String apply(java.lang.String elementName,
java.lang.String attributeName,
java.lang.String value)
elementName - the lower-case element name.attributeName - the lower-case attribute name.value - the attribute value without quotes and with HTML entities
decoded.null to disallow the attribute or the adjusted value if
allowed.Copyright © 2019 OWASP. All rights reserved.