class ProcessBuilderOptions extends java.lang.Object implements ClientBuilderOptions
The container node is named ConfigItem.CLIENT_CONF_CONTAINER and the first child of these nodes is
used:
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String[] |
accountIds
All the subject IDs associated with this builder or
null to use the context's subject IDs. |
private BaseClientBuilderOptions |
baseOptions
Base options.
|
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.
|
| Constructor and Description |
|---|
ProcessBuilderOptions(java.lang.String process,
java.util.Map<java.lang.String,java.lang.String> env)
Initialize.
|
| Modifier and Type | Method and Description |
|---|---|
BaseClientBuilderOptions |
getBaseOptions()
Returns the base client options.
|
java.lang.String |
getKeyentryPassword()
Getter for the
keyentryPassword. |
java.lang.String |
getKeystorePassword()
Getter for the
keystorePassword. |
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. |
boolean |
isValidateCertificate()
Getter for the
validateCertificate. |
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.CertificateSecurityManager#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.CertificateSecurityManager#certificateSm#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 final java.lang.String[] accountIds
null to use the context's subject IDs.private final java.lang.String outputToFile
private final java.lang.String process
private final BaseClientBuilderOptions baseOptions
public ProcessBuilderOptions(java.lang.String process,
java.util.Map<java.lang.String,java.lang.String> env)
process - The process subject ID.env - Map of additional environment properties, in the key=value form.public BaseClientBuilderOptions getBaseOptions()
getBaseOptions in interface ClientBuilderOptionspublic 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.public java.lang.String getOutputToFile()
public java.lang.String getProcess()