public class SecurityLevelsToadlet extends Toadlet
Modifier and Type | Field and Description |
---|---|
static int |
MAX_PASSWORD_LENGTH |
HANDLE_METHOD_PREFIX
Modifier and Type | Method and Description |
---|---|
static void |
generatePasswordFormPage(boolean wasWrong,
HTMLNode formNode,
HTMLNode content,
boolean forDowngrade,
boolean forUpgrade,
java.lang.String physicalSecurityLevel,
java.lang.String redirect) |
static void |
generatePasswordFormPage(boolean wasWrong,
ToadletContainer ctx,
HTMLNode content,
boolean forFirstTimeWizard,
boolean forDowngrade,
boolean forUpgrade,
java.lang.String physicalSecurityLevel,
java.lang.String redirect) |
void |
handleMethodGET(java.net.URI uri,
HTTPRequest req,
ToadletContext ctx)
Handle a GET request.
|
void |
handleMethodPOST(java.net.URI uri,
HTTPRequest request,
ToadletContext ctx) |
java.lang.String |
path() |
static void |
sendCantDeleteMasterKeysFileInner(PageHelper helper,
java.lang.String filename,
java.lang.String physicalSecurityLevel) |
static HTMLNode |
sendCantDeleteMasterKeysFileInner(ToadletContext ctx,
java.lang.String filename,
boolean forFirstTimeWizard,
java.lang.String physicalSecurityLevel,
Node node) |
static HTMLNode |
sendPasswordFileCorruptedPageInner(boolean tooBig,
ToadletContext ctx,
boolean forSecLevels,
boolean forFirstTimeWizard,
java.lang.String masterPasswordFile,
Node node) |
static void |
sendPasswordFileCorruptedPageInner(PageHelper helper,
java.lang.String masterPasswordFile) |
addHomepageLink, allowPOSTWithoutPassword, findSupportedMethods, getClientImpl, sendErrorPage, sendErrorPage, sendErrorPage, showAsToadlet, showAsToadlet, writeHTMLReply, writeHTMLReply, writeHTMLReply, writeInternalError, writeReply, writeReply, writeReply, writeReply, writeReply, writeReply, writeTemporaryRedirect, writeTextReply, writeTextReply
public static final int MAX_PASSWORD_LENGTH
public void handleMethodPOST(java.net.URI uri, HTTPRequest request, ToadletContext ctx) throws ToadletContextClosedException, java.io.IOException, RedirectException
ToadletContextClosedException
java.io.IOException
RedirectException
public static void sendCantDeleteMasterKeysFileInner(PageHelper helper, java.lang.String filename, java.lang.String physicalSecurityLevel)
public static HTMLNode sendCantDeleteMasterKeysFileInner(ToadletContext ctx, java.lang.String filename, boolean forFirstTimeWizard, java.lang.String physicalSecurityLevel, Node node)
public void handleMethodGET(java.net.URI uri, HTTPRequest req, ToadletContext ctx) throws ToadletContextClosedException, java.io.IOException
Toadlet
handleMethodGET
in class Toadlet
uri
- The URI being fetched.req
- The original HTTPRequest, convenient for e.g. fetching ?blah=blah parameters.ctx
- The request context. Mainly used for sending a reply; this identifies which
request we are replying to. Also gives access to lots of important objects e.g. PageMaker.ToadletContextClosedException
java.io.IOException
public static void sendPasswordFileCorruptedPageInner(PageHelper helper, java.lang.String masterPasswordFile)
public static HTMLNode sendPasswordFileCorruptedPageInner(boolean tooBig, ToadletContext ctx, boolean forSecLevels, boolean forFirstTimeWizard, java.lang.String masterPasswordFile, Node node)
public static void generatePasswordFormPage(boolean wasWrong, ToadletContainer ctx, HTMLNode content, boolean forFirstTimeWizard, boolean forDowngrade, boolean forUpgrade, java.lang.String physicalSecurityLevel, java.lang.String redirect)
forFirstTimeWizard
- used to determine form target: wizard if in the wizard, this toadlet if not.