Class InternalPolicy

java.lang.Object
org.owasp.validator.html.Policy
org.owasp.validator.html.InternalPolicy

public class InternalPolicy extends Policy
Contains a bunch of optimized lookups over the regular Policy Class. For internal use only.

Not part of any public API and may explode or self-destruct at any given moment, preferably both.

Author:
Kristian Rosenvold
  • Constructor Details

  • Method Details

    • getEmbedTag

      public Tag getEmbedTag()
    • getStyleTag

      public Tag getStyleTag()
    • isEmbedStyleSheets

      @Deprecated public boolean isEmbedStyleSheets()
      Deprecated.
      Remote styles import feature to be removed and along with this error message.
      Returns whether remote CSS can be imported. NOTE: This is dangerous and should not be enabled.
      Returns:
      True if remote CSS is allowed, false otherwise.
    • isPreserveComments

      public boolean isPreserveComments()
    • getMaxInputSize

      public int getMaxInputSize()
    • isEntityEncodeIntlCharacters

      public boolean isEntityEncodeIntlCharacters()
    • isNofollowAnchors

      public boolean isNofollowAnchors()
    • isNoopenerAndNoreferrerAnchors

      public boolean isNoopenerAndNoreferrerAnchors()
    • isValidateParamAsEmbed

      public boolean isValidateParamAsEmbed()
    • isFormatOutput

      public boolean isFormatOutput()
    • isPreserveSpace

      public boolean isPreserveSpace()
    • isOmitXmlDeclaration

      public boolean isOmitXmlDeclaration()
    • isOmitDoctypeDeclaration

      public boolean isOmitDoctypeDeclaration()
    • getOnUnknownTag

      public String getOnUnknownTag()
    • isEncodeUnknownTag

      public boolean isEncodeUnknownTag()
    • isAllowDynamicAttributes

      public boolean isAllowDynamicAttributes()
    • determineMaxInputSize

      public int determineMaxInputSize()
      Returns the maximum input size. If this value is not specified by the policy, the DEFAULT_MAX_INPUT_SIZE is used.
      Returns:
      the maximum input size.