public class WssKeyStoreConfiguration extends Object implements WssStoreConfiguration
WssStoreConfiguration implementation for Key Stores, used for WS-Security encryption, decryption and signing.
The keystore type (e.g. JKS, BCFKS) is passed through to WSS4J/Merlin; for FIPS environments use type "BCFKS" via the
five-argument constructor.MERLIN_PROP_PREFIX, WS_CRYPTO_PROVIDER_KEY, WSS4J_PROP_PREFIX| Constructor and Description |
|---|
WssKeyStoreConfiguration(String alias,
String password,
String keyStorePath)
Creates a key store configuration with default type
"JKS". |
WssKeyStoreConfiguration(String alias,
String password,
String keyStorePath,
String keyPassword,
String type)
Creates a key store configuration with explicit type (e.g.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAlias()
Returns the alias of the key entry used for signing, encryption or decryption.
|
Properties |
getConfigurationProperties()
Returns properties for WSS4J Merlin (keystore path, type, alias, passwords).
|
String |
getKeyPassword()
Returns the password for the private key entry, or
null if the same as the keystore password. |
String |
getKeyStorePath()
Returns the path or classpath resource to the keystore file.
|
String |
getPassword()
Returns the keystore password.
|
String |
getType()
Returns the keystore type (e.g.
|
public WssKeyStoreConfiguration(String alias, String password, String keyStorePath, String keyPassword, String type)
"JKS" or "BCFKS"). Use this constructor for FIPS
environments, passing "BCFKS" and the path to a BCFKS keystore.alias - alias of the key entry to use for signing/encryption/decryptionpassword - keystore passwordkeyStorePath - path or classpath resource to the keystore filekeyPassword - password for the private key entry (may be null if same as keystore password)type - keystore type as accepted by KeyStore.getInstance(String) (e.g. "JKS",
"BCFKS")public WssKeyStoreConfiguration(String alias, String password, String keyStorePath)
"JKS". For FIPS environments use the five-argument constructor
with type "BCFKS".alias - alias of the key entry to use for signing/encryption/decryptionpassword - keystore password (and key password if not specified separately)keyStorePath - path or classpath resource to the keystore filepublic Properties getConfigurationProperties()
Returns properties for WSS4J Merlin (keystore path, type, alias, passwords).
getConfigurationProperties in interface WssStoreConfigurationProperties to configure a SecurityStrategy.public String getKeyPassword()
null if the same as the keystore password.public String getAlias()
public String getPassword()
public String getKeyStorePath()
public String getType()
"JKS", "BCFKS").Copyright © 2026. All rights reserved.