public class EnvironmentStringPBEConfig extends EnvironmentPBEConfig implements StringPBEConfig
Implementation for StringPBEConfig
which can retrieve configuration
values from environment variables or system properties.
The name of the environment variable or system property (JVM property) to query for each parameter can be set with its corresponding setXEnvName or setXSysProperty method.
As this class extends SimplePBEConfig
, parameter values
can be also set with the usual setX methods.
For any of the configuration parameters, if its value is not configured in any way, a null value will be returned by the corresponding getX method.
Constructor and Description |
---|
EnvironmentStringPBEConfig()
Creates a new EnvironmentStringPBEConfig instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getStringOutputType()
This parameter lets the user specify the form in which String output
will be encoded.
|
String |
getStringOutputTypeEnvName()
Retrieve the name of the environment variable which value has been
loaded as the String output type.
|
String |
getStringOutputTypeSysPropertyName()
Retrieve the name of the JVM system property which value has been
loaded as the String output type.
|
void |
setStringOutputType(String stringOutputType)
Sets the the form in which String output
will be encoded.
|
void |
setStringOutputTypeEnvName(String stringOutputTypeEnvName)
Set the config object to use the specified environment variable to
load the value for the String output type.
|
void |
setStringOutputTypeSysPropertyName(String stringOutputTypeSysPropertyName)
Set the config object to use the specified JVM system property to
load the value for the String output type.
|
getAlgorithmEnvName, getAlgorithmSysPropertyName, getKeyObtentionIterationsEnvName, getKeyObtentionIterationsSysPropertyName, getPasswordEnvName, getPasswordSysPropertyName, getPoolSizeEnvName, getPoolSizeSysPropertyName, getProviderClassNameEnvName, getProviderClassNameSysPropertyName, getProviderNameEnvName, getProviderNameSysPropertyName, getSaltGeneratorClassNameEnvName, getSaltGeneratorClassNameSysPropertyName, setAlgorithm, setAlgorithmEnvName, setAlgorithmSysPropertyName, setKeyObtentionIterations, setKeyObtentionIterations, setKeyObtentionIterationsEnvName, setKeyObtentionIterationsSysPropertyName, setPassword, setPasswordCharArray, setPasswordEnvName, setPasswordSysPropertyName, setPoolSize, setPoolSize, setPoolSizeEnvName, setPoolSizeSysPropertyName, setProvider, setProviderClassName, setProviderClassNameEnvName, setProviderClassNameSysPropertyName, setProviderName, setProviderNameEnvName, setProviderNameSysPropertyName, setSaltGenerator, setSaltGeneratorClassName, setSaltGeneratorClassNameEnvName, setSaltGeneratorClassNameSysPropertyName
cleanPassword, getAlgorithm, getKeyObtentionIterations, getPassword, getPasswordCharArray, getPoolSize, getProvider, getProviderName, getSaltGenerator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlgorithm, getKeyObtentionIterations, getPassword, getPoolSize, getProvider, getProviderName, getSaltGenerator
public EnvironmentStringPBEConfig()
Creates a new EnvironmentStringPBEConfig instance.
public String getStringOutputTypeEnvName()
public void setStringOutputTypeEnvName(String stringOutputTypeEnvName)
stringOutputTypeEnvName
- the name of the environment variablepublic String getStringOutputTypeSysPropertyName()
public void setStringOutputTypeSysPropertyName(String stringOutputTypeSysPropertyName)
stringOutputTypeSysPropertyName
- the name of the propertypublic void setStringOutputType(String stringOutputType)
Sets the the form in which String output will be encoded. Available encoding types are:
If not set, null will be returned.
stringOutputType
- the string output type.public String getStringOutputType()
StringPBEConfig
This parameter lets the user specify the form in which String output will be encoded. Available encoding types are:
getStringOutputType
in interface StringPBEConfig
Copyright © 2019 JBoss by Red Hat. All rights reserved.