Package nablarch.common.web.tag
Class CspNonceTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
nablarch.common.web.tag.CustomTagSupport
nablarch.common.web.tag.HtmlTagSupport
nablarch.common.web.tag.CspNonceTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.DynamicAttributes,jakarta.servlet.jsp.tagext.IterationTag,jakarta.servlet.jsp.tagext.JspTag,jakarta.servlet.jsp.tagext.Tag,jakarta.servlet.jsp.tagext.TryCatchFinally,Serializable
セキュアハンドラがCSP向けのnonceを生成した場合にnonceを出力するクラス
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
セキュアハンドラがCSP向けのnonceを生成している場合(リクエストスコープにnonceが設定されている場合)に nonceを出力する。sourceFormatプロパティがtrueの場合は、ポリシー向けに nonce- を prefixとして付与して出力するbooleannonceを出力する際に nonce- をprefixとして付与するか否かvoidsetSourceFormat(boolean sourceFormat) nonceを出力する際に nonce- をprefixとして付与するか否か。 デフォルトはfalseで出力しないMethods inherited from class nablarch.common.web.tag.HtmlTagSupport
doCatch, doFinally, getAttributes, setDynamicAttributeMethods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
CspNonceTag
public CspNonceTag()
-
-
Method Details
-
getSourceFormat
public boolean getSourceFormat()nonceを出力する際に nonce- をprefixとして付与するか否か- Returns:
- nonceを出力する際に nonce- をprefixとして付与するか否か
-
setSourceFormat
public void setSourceFormat(boolean sourceFormat) nonceを出力する際に nonce- をprefixとして付与するか否か。 デフォルトはfalseで出力しない- Parameters:
sourceFormat- nonceを出力する際に nonce- をprefixとして付与するか否か
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspException
セキュアハンドラがCSP向けのnonceを生成している場合(リクエストスコープにnonceが設定されている場合)に nonceを出力する。sourceFormatプロパティがtrueの場合は、ポリシー向けに nonce- を prefixとして付与して出力する- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjakarta.servlet.jsp.tagext.TagSupport- Throws:
jakarta.servlet.jsp.JspException
-