public interface AttributePolicy
HtmlPolicyBuilder.AttributeBuilder.matching(AttributePolicy)
Modifier and Type | Interface and Description |
---|---|
static class |
AttributePolicy.Util
Utilities for working with attribute policies.
|
Modifier and Type | Field and 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 and Description |
---|---|
String |
apply(String elementName,
String attributeName,
String value) |
static final AttributePolicy IDENTITY_ATTRIBUTE_POLICY
static final AttributePolicy REJECT_ALL_ATTRIBUTE_POLICY
@Nullable String apply(String elementName, String attributeName, 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 © 2017 OWASP. All rights reserved.