public class HttpManagerServletEngine
extends java.lang.Object
HttpManagerServletEngine class contains the core
features for proxying client requests to an Entrust PKI, allowing users to
be initialized through an http tunnel.
To use this class:
Servlet class and create an instance of
HttpManagerServletEngine
doGet() and doPost() methods of your
HttpManagerServlet should call the corresponding doGet() and doPost() methods
of your HttpManagerServletEngine instance.
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_MAXIMUM_LIFETIME |
| Constructor and Description |
|---|
HttpManagerServletEngine(jakarta.servlet.Servlet servlet,
java.lang.String managerIP,
int managerPort,
long maximumLifetime)
Constructor for manager tunneling engine.
|
HttpManagerServletEngine(jakarta.servlet.Servlet servlet,
User user,
long maximumLifetime)
Constructor for manager tunneling engine.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doGet(jakarta.servlet.http.HttpServletRequest req,
jakarta.servlet.http.HttpServletResponse res)
Handles the
doGet() method in the servlet. |
void |
doPost(jakarta.servlet.http.HttpServletRequest req,
jakarta.servlet.http.HttpServletResponse res)
Handles the
doPost() method in the servlet. |
java.lang.String |
getManagerIP() |
long |
getMaximumLifetime() |
int |
getPort() |
boolean |
isDebug() |
void |
setDebug(boolean m_debug) |
void |
setManagerIP(java.lang.String m_managerip) |
void |
setMaximumLifetime(long lifetime) |
void |
setPort(int m_port) |
public static final long DEFAULT_MAXIMUM_LIFETIME
public HttpManagerServletEngine(jakarta.servlet.Servlet servlet,
java.lang.String managerIP,
int managerPort,
long maximumLifetime)
throws jakarta.servlet.UnavailableException
Constructor for manager tunneling engine.
servlet - servlet using this enginemanagerIP - manager IP or server namemanagerPort - manager portmaximumLifetime - (milliseconds)jakarta.servlet.UnavailableExceptionpublic HttpManagerServletEngine(jakarta.servlet.Servlet servlet,
User user,
long maximumLifetime)
throws jakarta.servlet.UnavailableException
Constructor for manager tunneling engine.
servlet - servlet using this engine instanceuser - a logged in Java Toolkit UsermaximumLifetime - (milliseconds)jakarta.servlet.UnavailableExceptionpublic boolean isDebug()
public void setDebug(boolean m_debug)
public long getMaximumLifetime()
public void setMaximumLifetime(long lifetime)
public int getPort()
public void setPort(int m_port)
public java.lang.String getManagerIP()
public void setManagerIP(java.lang.String m_managerip)
public void doPost(jakarta.servlet.http.HttpServletRequest req,
jakarta.servlet.http.HttpServletResponse res)
throws jakarta.servlet.ServletException,
java.io.IOException
doPost() method in the servlet.
The doPost() method receives a message from the
client, passes it to the Registration Authority server, and receives a
response. The response is saved until the client requests it by sending
a GET request.
req - res - jakarta.servlet.ServletExceptionjava.io.IOExceptiondoGet(HttpServletRequest req, HttpServletResponse res)public void doGet(jakarta.servlet.http.HttpServletRequest req,
jakarta.servlet.http.HttpServletResponse res)
throws jakarta.servlet.ServletException,
java.io.IOException
doGet() method in the servlet.
The doGet() method responds to HTML GET
requests from clients. A client sends a GET to the servlet in two
situations:
GET to request that a response
from the the Registration Authority be returned to it. The
doGet() method identifies the client by its cookie
(session id) and returns the appropriate response.GET to notify that the session
is complete and the servlet should close the connection to the PKI
that was opened earlier on behalf of that client.
req - res - jakarta.servlet.ServletExceptionjava.io.IOException