public static class X509TestContext.Builder extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
conf |
private X509KeyType |
keyStoreKeyType |
private char[] |
keyStorePassword |
private File |
tempDir |
private X509KeyType |
trustStoreKeyType |
private char[] |
trustStorePassword |
Constructor and Description |
---|
Builder(org.apache.hadoop.conf.Configuration conf)
Creates an empty builder with the given Configuration.
|
Modifier and Type | Method and Description |
---|---|
X509TestContext |
build()
Builds a new X509TestContext from this builder.
|
X509TestContext.Builder |
setKeyStoreKeyType(X509KeyType keyType)
Sets the key store key type.
|
X509TestContext.Builder |
setKeyStorePassword(char[] password)
Sets the key store password.
|
X509TestContext.Builder |
setTempDir(File tempDir)
Sets the temporary directory.
|
X509TestContext.Builder |
setTrustStoreKeyType(X509KeyType keyType)
Sets the trust store key type.
|
X509TestContext.Builder |
setTrustStorePassword(char[] password)
Sets the trust store password.
|
private final org.apache.hadoop.conf.Configuration conf
private X509KeyType trustStoreKeyType
private char[] trustStorePassword
private X509KeyType keyStoreKeyType
private char[] keyStorePassword
public Builder(org.apache.hadoop.conf.Configuration conf)
public X509TestContext build() throws IOException, GeneralSecurityException, org.bouncycastle.operator.OperatorCreationException
IOException
GeneralSecurityException
org.bouncycastle.operator.OperatorCreationException
public X509TestContext.Builder setTempDir(File tempDir)
tempDir
- the temp directory.public X509TestContext.Builder setTrustStoreKeyType(X509KeyType keyType)
keyType
- the key type.public X509TestContext.Builder setTrustStorePassword(char[] password)
password
- the password.public X509TestContext.Builder setKeyStoreKeyType(X509KeyType keyType)
keyType
- the key type.public X509TestContext.Builder setKeyStorePassword(char[] password)
password
- the password.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.