public interface IStorableCertificateFactory extends ICertificateFactory
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_SAVE_CHANGES_TO_FILE |
| Modifier and Type | Method and Description |
|---|---|
String |
getFilename() |
char[] |
getPassword() |
boolean |
isSaveChangesToFile() |
default void |
load()
Shortcut for
load (getFilename (), getPassword ()); |
void |
load(InputStream aIS,
char[] aPassword) |
default void |
load(String sFilename,
char[] aPassword) |
default void |
save()
Shortcut for
save (getFilename (), getPassword ()); |
void |
save(OutputStream aOS,
char[] aPassword) |
default void |
save(String sFilename,
char[] aPassword) |
void |
setFilename(String sFilename) |
default void |
setPassword(char[] aPassword) |
void |
setPassword(String sPassword) |
void |
setSaveChangesToFile(boolean bSaveChangesToFile)
Change the behavior if all changes should trigger a saving to the original
file.
|
getCertificate, getCertificateOrNull, getPrivateKeyattrs, getName, getSession, initDynamicComponentstatic final boolean DEFAULT_SAVE_CHANGES_TO_FILE
default void setPassword(@Nonnull char[] aPassword)
@Nullable char[] getPassword()
void setSaveChangesToFile(boolean bSaveChangesToFile)
DEFAULT_SAVE_CHANGES_TO_FILE.bSaveChangesToFile - true to enable auto-saving, false to
disable it.boolean isSaveChangesToFile()
true if changes to the key store should be persisted
back to the original file, false if not. The default
value is DEFAULT_SAVE_CHANGES_TO_FILE.default void load()
throws AS2Exception
load (getFilename (), getPassword ());AS2Exception - In case of an internal errordefault void load(@Nonnull String sFilename, @Nonnull char[] aPassword) throws AS2Exception
AS2Exceptionvoid load(@Nonnull InputStream aIS, @Nonnull char[] aPassword) throws AS2Exception
AS2Exceptiondefault void save()
throws AS2Exception
save (getFilename (), getPassword ());AS2Exception - In case of an internal errordefault void save(@Nonnull String sFilename, @Nonnull char[] aPassword) throws AS2Exception
AS2Exceptionvoid save(@Nonnull OutputStream aOS, @Nonnull char[] aPassword) throws AS2Exception
AS2ExceptionCopyright © 2013–2022 Philip Helger. All rights reserved.