Package com.jalios.jcms.security
Class KeyStoreManager
java.lang.Object
com.jalios.jcms.security.KeyStoreManager
- All Implemented Interfaces:
JPropertiesListener
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyStoreManagerbooleanvoidpropertiesChange(JProperties properties) Invoked after properties have been modified in JCMS and save on disk.static PrivateKeyreadPrivateKey(File privateKeyFile, String password) Read a private key filestatic ControllerStatusvalidateConfiguration(JProperties jproperties, List<JcmsMessage> informationMessagesCollector)
-
Field Details
-
AUTH_PRIVATE_KEY_PASSWORD
- See Also:
-
AUTH_PRIVATE_KEY_PASSWORD_LEGACY
- See Also:
-
AUTH_PRIVATE_KEY
- See Also:
-
AUTH_AUTHENTICATION_TRUST_STORE_PASSWORD
- See Also:
-
AUTH_AUTHENTICATION_TRUST_STORE
- See Also:
-
AUTH_AUTHENTICATION_CRL_DIR_PATH
- See Also:
-
-
Method Details
-
getInstance
-
validateConfiguration
public static ControllerStatus validateConfiguration(JProperties jproperties, List<JcmsMessage> informationMessagesCollector) -
isInitialized
public boolean isInitialized() -
getIssuerPublicKeyMap
-
getCrlMap
-
getPrivateKey
-
propertiesChange
Description copied from interface:JPropertiesListenerInvoked after properties have been modified in JCMS and save on disk.You cannot alter the value received in parameters.
Note that properties parameter may be null, a limited set of site properties, or all site properties.
To check that a property has been modified, reload the "current" property instead using
channel.getPropertiesorchannel.getProperty.- Specified by:
propertiesChangein interfaceJPropertiesListener- Parameters:
properties- the properties which have been submitted to change
-
readPrivateKey
Read a private key file- Parameters:
privateKeyFile- the private key filepassword- the password to read the key- Returns:
- the
PrivateKeyobject, or null if any errors occurs
-