java.lang.Object
net.i2p.router.web.HelperBase
net.i2p.router.web.helpers.CertHelper
Dump out our local SSL certs, if any.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate LogLogger for this class.private static final StringPath of the console certificate.private static final StringDirectory the certificates are kept in.private static final StringDirectory the eepsite certificates are kept in.private static final StringPath of the I2CP certificate.private static final StringDirectory the tunnel certificates are kept in.private static final StringDirectory the SAM certificates are kept in.private static final StringFile separator for building the certificate paths.Fields inherited from class HelperBase
_context, _out, CHECKED, PROP_ADVANCED, SELECTEDModifier and TypeFieldDescriptionprotected RouterContextThe router context.protected WriterThe writer for output.static final StringChecked attribute for HTML checkboxes.static final StringProperty key for advanced mode.static final StringSelected attribute for HTML select options.Constructor Summary
ConstructorsConstructorDescriptionCreates the helper that renders the local SSL certificate summary.Method Summary
Modifier and TypeMethodDescriptionGenerate the certificate summary HTML.private voidSend a certificate file to the browser.Methods inherited from class HelperBase
_t, _t, _t, _x, getChecked, isAdvanced, ngettext, setContextId, storeWriterModifier and TypeMethodDescriptionTranslate a string.Translate a string with a parameter.Translate a string with two parameters.static StringMark a string for extraction by xgettext and translation.protected StringgetChecked(String prop) Get the checked attribute for a boolean property.booleanCheck if advanced mode is enabled.Translate a string with plural forms (ngettext).voidsetContextId(String contextId) Configure this bean to query a particular router context.voidstoreWriter(Writer out) Store the writer for output.
Field Details
DIR
Directory the certificates are kept in.- See Also:
I2CP
CONSOLE
I2PTUNNEL_DIR
Directory the tunnel certificates are kept in.- See Also:
SAM_DIR
Directory the SAM certificates are kept in.- See Also:
EEPSITE_DIR
Directory the eepsite certificates are kept in.- See Also:
slash
File separator for building the certificate paths._log
Logger for this class.
Constructor Details
CertHelper
public CertHelper()Creates the helper that renders the local SSL certificate summary.
Method Details
getSummary
output
Send a certificate file to the browser.- Parameters:
name- the certificate name to show as a headingfile- may be null- Throws:
IOException- if writing to the console output fails