Package com.newmediaworks.taglib.payment
Class MaskCardNumberTag
java.lang.Object
jakarta.servlet.jsp.tagext.SimpleTagSupport
com.aoapps.encoding.taglib.EncodingBufferedTag
com.newmediaworks.taglib.payment.MaskCardNumberTag
Masks a credit card number by only showing the first and last digits, hiding all the middle digits.
- Author:
- New Media Works
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoTag(BufferResult capturedBody, Writer out) protected voidinvoke(JspFragment body, MediaValidator captureValidator) voidMethods inherited from class com.aoapps.encoding.taglib.EncodingBufferedTag
doTag, getTempFileThreshold, newBufferWriter, newBufferWriter, newBufferWriter, newBufferWriter, setMediaEncoderOptions, writeEncoderPrefix, writeEncoderSuffix, writePrefix, writeSuffixMethods inherited from class jakarta.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
Constructor Details
-
MaskCardNumberTag
public MaskCardNumberTag()
-
-
Method Details
-
getContentType
- Specified by:
getContentTypein classEncodingBufferedTag
-
getOutputType
- Specified by:
getOutputTypein classEncodingBufferedTag
-
setValue
-
invoke
protected void invoke(JspFragment body, MediaValidator captureValidator) throws JspException, IOException - Overrides:
invokein classEncodingBufferedTag- Throws:
JspExceptionIOException
-
doTag
- Overrides:
doTagin classEncodingBufferedTag- Throws:
JspExceptionIOException
-
