public final class WebPBEConfigServlet
extends javax.servlet.http.HttpServlet
Servlet for web PBE config processing.
This servlet's URL should be called by the webapp administrator at deploy
time, for setting the passwords of all the PBE encryptors which have
been previously assigned a WebPBEConfig
configuration object.
If web PBE configuration has not been done yet, it will show the user a form containing two inputs for each encryptor: the validation word and the password (retyped).
WebPBEConfig
object with its setValidationWord(...)
method. This will ensure that only an authorized person will set
the encryption passwords.An example web.xml fragment:
<servlet> <servlet-name>webPBEConfigServlet</servlet-name> <servlet-class> org.jasypt.web.pbeconfig.WebPBEConfigServlet </servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>webPBEConfigServlet</servlet-name> <url-pattern>/webPBEConfig.do</url-pattern> </servlet-mapping>
If this servlet's context is set a logger, it will output messages for both successful and failed attempts to set passwords, including date, time and originating IP address.
Constructor and Description |
---|
WebPBEConfigServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
Copyright © 2014 The JASYPT team. All rights reserved.