public class PdfAsHelper
extends java.lang.Object
Constructor and Description |
---|
PdfAsHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
generateBKUURL(java.lang.String connector) |
static java.lang.String |
generateDataURL(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static java.lang.String |
generateErrorURL(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static java.lang.String |
generatePdfURL(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static java.lang.String |
generateProvideURL(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static java.lang.String |
getErrorRedirectTemplateSL() |
static java.lang.String |
getErrorTemplate() |
static java.lang.String |
getErrorURL(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static boolean |
getFromDataUrl(javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getInvokeRedirectTemplateSL() |
static java.lang.String |
getInvokeURL(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static java.lang.String |
getPDFFileName(javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getProvideTemplate() |
static java.lang.String |
getSessionErrMessage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static java.lang.Throwable |
getSessionException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static java.lang.String |
getSignatureDataHash(javax.servlet.http.HttpServletRequest request) |
static byte[] |
getSignedPdf(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static java.util.List<VerifyResult> |
getVerificationResult(javax.servlet.http.HttpServletRequest request) |
static void |
gotoError(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static void |
gotoProvidePdf(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static void |
init() |
static void |
injectCertificate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
InfoboxReadResponseType infoboxReadResponseType,
javax.servlet.ServletContext context) |
static void |
injectSignature(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
CreateCMSSignatureResponseType createCMSSignatureResponseType,
javax.servlet.ServletContext context) |
static boolean |
isSignatureActive(javax.servlet.http.HttpServletRequest request) |
static void |
logAccess(javax.servlet.http.HttpServletRequest request) |
static void |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext context) |
static void |
regenerateSession(javax.servlet.http.HttpServletRequest request) |
static void |
setErrorURL(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String url) |
static void |
setFromDataUrl(javax.servlet.http.HttpServletRequest request) |
static void |
setInvokeURL(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String url) |
static void |
setPDFFileName(javax.servlet.http.HttpServletRequest request,
java.lang.String value) |
static void |
setSessionException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String message,
java.lang.Throwable e) |
static void |
setSignatureActive(javax.servlet.http.HttpServletRequest request,
boolean value) |
static void |
setSignatureDataHash(javax.servlet.http.HttpServletRequest request,
java.lang.String value) |
static void |
setSignedPdf(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
byte[] signedData) |
static void |
setVerificationResult(javax.servlet.http.HttpServletRequest request,
java.util.List<VerifyResult> value) |
static void |
startSignature(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext context,
byte[] pdfData) |
static byte[] |
synchornousSignature(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
byte[] pdfData)
Create synchronous PDF Signature
|
static java.util.List<VerifyResult> |
synchornousVerify(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
byte[] pdfData) |
public static void init()
public static java.util.List<VerifyResult> synchornousVerify(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, byte[] pdfData) throws java.lang.Exception
java.lang.Exception
public static byte[] synchornousSignature(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, byte[] pdfData) throws java.lang.Exception
request
- The Web requestresponse
- The Web responsepdfData
- The pdf datajava.lang.Exception
public static void startSignature(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext context, byte[] pdfData) throws java.lang.Exception
java.lang.Exception
public static void injectCertificate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, InfoboxReadResponseType infoboxReadResponseType, javax.servlet.ServletContext context) throws java.lang.Exception
java.lang.Exception
public static void injectSignature(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, CreateCMSSignatureResponseType createCMSSignatureResponseType, javax.servlet.ServletContext context) throws java.lang.Exception
java.lang.Exception
public static void logAccess(javax.servlet.http.HttpServletRequest request)
public static void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext context) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getErrorRedirectTemplateSL() throws java.io.IOException
java.io.IOException
public static java.lang.String getProvideTemplate() throws java.io.IOException
java.io.IOException
public static java.lang.String getErrorTemplate() throws java.io.IOException
java.io.IOException
public static java.lang.String getInvokeRedirectTemplateSL() throws java.io.IOException
java.io.IOException
public static byte[] getSignedPdf(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public static void setSignedPdf(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, byte[] signedData)
public static void setSessionException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String message, java.lang.Throwable e)
public static java.lang.String getSessionErrMessage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public static java.lang.Throwable getSessionException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public static void gotoError(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public static void gotoProvidePdf(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public static void setErrorURL(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String url)
public static java.lang.String getErrorURL(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public static void setInvokeURL(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String url)
public static java.lang.String getInvokeURL(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public static void regenerateSession(javax.servlet.http.HttpServletRequest request)
public static java.lang.String generateDataURL(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public static java.lang.String generateProvideURL(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public static java.lang.String generateErrorURL(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public static java.lang.String generatePdfURL(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public static java.lang.String generateBKUURL(java.lang.String connector)
public static void setFromDataUrl(javax.servlet.http.HttpServletRequest request)
public static boolean getFromDataUrl(javax.servlet.http.HttpServletRequest request)
public static void setSignatureDataHash(javax.servlet.http.HttpServletRequest request, java.lang.String value)
public static java.lang.String getSignatureDataHash(javax.servlet.http.HttpServletRequest request)
public static void setPDFFileName(javax.servlet.http.HttpServletRequest request, java.lang.String value)
public static java.lang.String getPDFFileName(javax.servlet.http.HttpServletRequest request)
public static void setVerificationResult(javax.servlet.http.HttpServletRequest request, java.util.List<VerifyResult> value)
public static java.util.List<VerifyResult> getVerificationResult(javax.servlet.http.HttpServletRequest request)
public static void setSignatureActive(javax.servlet.http.HttpServletRequest request, boolean value)
public static boolean isSignatureActive(javax.servlet.http.HttpServletRequest request)