class ProcessBuilderOptions extends ClientBuilderOptions
The container node is named DIRECTORY_NODE_ID
and the first child of these nodes is
used:
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DIRECTORY_NODE_ID
Directory node name,
"clientConfig" string. |
private static java.lang.ThreadLocal<SecurityManager.EncryptedKeyStoreFunction> |
encryptedKeyStoreWorker
Thread-local cache of the key store function obtained from
SecurityManager . |
private java.lang.String |
keyentryPassword
The keyentry password.
|
private java.lang.String |
keystorePassword
The keystore password.
|
private java.lang.String |
outputToFile
The name of the output file.
|
private java.lang.String |
process
P2J process name
|
private java.lang.String |
processAlias
The alias in the process keystore.
|
private byte[] |
processKeystore
The serialized process keystore.
|
private byte[] |
truststore
The serialized truststore.
|
private java.lang.String |
truststoreAlias
The alias in the truststore.
|
private java.lang.String |
truststorePassword
The truststore password.
|
private boolean |
validateCertificate
Flag indicating if the certificate must be validated.
|
accountIds
Constructor and Description |
---|
ProcessBuilderOptions(java.lang.String process)
Initialize.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKeyentryPassword()
Getter for the
keyentryPassword . |
java.lang.String |
getKeystorePassword()
Getter for the
keystorePassword . |
protected boolean |
getNode(java.lang.String parent,
java.lang.String node,
boolean defa)
Get a boolean value from a directory node.
|
protected byte[] |
getNode(java.lang.String parent,
java.lang.String node,
byte[] defa)
Get a byte array from a directory node.
|
protected int |
getNode(java.lang.String parent,
java.lang.String node,
int defa)
Get an integer value from a directory node.
|
protected java.lang.String |
getNode(java.lang.String parent,
java.lang.String node,
java.lang.String defa)
Get a string value from a directory node.
|
java.lang.String |
getOutputToFile()
Get the output file template.
|
java.lang.String |
getProcess()
Get P2J process name.
|
java.lang.String |
getProcessAlias()
Getter for the
processAlias . |
byte[] |
getProcessKeystore()
Getter for the
processKeystore . |
byte[] |
getTruststore()
Getter for the
truststore . |
java.lang.String |
getTruststoreAlias()
Getter for the
truststoreAlias . |
java.lang.String |
getTruststorePassword()
Getter for the
truststorePassword . |
protected boolean |
isPasswordAuthentication()
Get the authentication mode for this spawner.
|
boolean |
isValidateCertificate()
Getter for the
validateCertificate . |
getBootstrapConfig, getClassPath, getCommand, getConfigFile, getJvmArguments, getLibPath, getMainClass, getSpawner, getWorkingDirectory, isSecure, quotedString
private static final java.lang.String DIRECTORY_NODE_ID
"clientConfig"
string.private static final java.lang.ThreadLocal<SecurityManager.EncryptedKeyStoreFunction> encryptedKeyStoreWorker
SecurityManager
.
This may be null
if the thread doesn't have the proper security context to
access the function.
This is set as a thread-local variable instead of a static field to not expose the worker
in SecurityManager.getEncryptedKeyStore()
which returns the private key store to
other threads which may not have a server context. It is initialized only once per thread,
and only if the thread has access to the SecurityManager.getEncryptedKeyStore()
API.
private final java.lang.String processAlias
private final java.lang.String truststoreAlias
private final java.lang.String keystorePassword
private final java.lang.String keyentryPassword
private final java.lang.String truststorePassword
private final boolean validateCertificate
private final byte[] processKeystore
private final byte[] truststore
private java.lang.String outputToFile
private java.lang.String process
public ProcessBuilderOptions(java.lang.String process)
process
- The process subject ID.public java.lang.String getProcessAlias()
processAlias
.public java.lang.String getTruststoreAlias()
truststoreAlias
.public java.lang.String getKeystorePassword()
keystorePassword
.public java.lang.String getKeyentryPassword()
keyentryPassword
.public java.lang.String getTruststorePassword()
truststorePassword
.public boolean isValidateCertificate()
validateCertificate
.public byte[] getProcessKeystore()
processKeystore
.public byte[] getTruststore()
truststore
.protected boolean isPasswordAuthentication()
isPasswordAuthentication
in class ClientBuilderOptions
false
.public java.lang.String getOutputToFile()
public java.lang.String getProcess()
protected java.lang.String getNode(java.lang.String parent, java.lang.String node, java.lang.String defa)
getNode
in class ClientBuilderOptions
parent
- The name of the parent node.node
- Node name.defa
- Default value if node not found.protected int getNode(java.lang.String parent, java.lang.String node, int defa)
getNode
in class ClientBuilderOptions
parent
- The name of the parent node.node
- Node name.defa
- Default value if node not found.protected boolean getNode(java.lang.String parent, java.lang.String node, boolean defa)
getNode
in class ClientBuilderOptions
parent
- The name of the parent node.node
- Node name.defa
- Default value if node not found.protected byte[] getNode(java.lang.String parent, java.lang.String node, byte[] defa)
parent
- The name of the parent node.node
- Node name.defa
- Default value if node not found.