Package com.helger.as2lib.cert
Interface IStorableCertificateFactory
- All Superinterfaces:
ICertificateFactory
,IDynamicComponent
- All Known Implementing Classes:
CertificateFactory
Base interface for a certificate factory that can store to a file.
- Author:
- Philip Helger
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionchar[]
boolean
default void
load()
Shortcut forload (getFilename (), getPassword ());
void
load
(InputStream aIS, char[] aPassword) default void
default void
save()
Shortcut forsave (getFilename (), getPassword ());
void
save
(OutputStream aOS, char[] aPassword) default void
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.Methods inherited from interface com.helger.as2lib.cert.ICertificateFactory
getCertificate, getCertificateOrNull, getPrivateKey
Methods inherited from interface com.helger.as2lib.IDynamicComponent
attrs, getName, getSession, initDynamicComponent
-
Field Details
-
DEFAULT_SAVE_CHANGES_TO_FILE
static final boolean DEFAULT_SAVE_CHANGES_TO_FILE- See Also:
-
-
Method Details
-
setFilename
-
getFilename
-
setPassword
-
setPassword
-
getPassword
-
setSaveChangesToFile
void setSaveChangesToFile(boolean bSaveChangesToFile) Change the behavior if all changes should trigger a saving to the original file. The default value isDEFAULT_SAVE_CHANGES_TO_FILE
.- Parameters:
bSaveChangesToFile
-true
to enable auto-saving,false
to disable it.
-
isSaveChangesToFile
boolean isSaveChangesToFile()- Returns:
true
if changes to the key store should be persisted back to the original file,false
if not. The default value isDEFAULT_SAVE_CHANGES_TO_FILE
.
-
load
Shortcut forload (getFilename (), getPassword ());
- Throws:
AS2Exception
- In case of an internal error
-
load
- Throws:
AS2Exception
-
load
- Throws:
AS2Exception
-
save
Shortcut forsave (getFilename (), getPassword ());
- Throws:
AS2Exception
- In case of an internal error
-
save
- Throws:
AS2Exception
-
save
- Throws:
AS2Exception
-