public class KeyStoreOptions extends KeyStoreOptions
KeyStoreOptions
.
This extension sets the default type to the runtime keystore type (for compatibility, reasons)
plus it allows the configuration of password per key using setPasswordProtection(Map)
.
Constructor and Description |
---|
KeyStoreOptions()
Default constructor
|
KeyStoreOptions(JsonObject json)
Constructor to create an options from JSON
|
KeyStoreOptions(KeyStoreOptions other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getPasswordProtection() |
String |
getType() |
KeyStoreOptions |
putPasswordProtection(String alias,
String password) |
KeyStoreOptions |
setPassword(String password)
Set the password for the key store
|
KeyStoreOptions |
setPasswordProtection(Map<String,String> passwordProtection) |
KeyStoreOptions |
setPath(String path)
Set the path to the key store
|
KeyStoreOptions |
setType(String type) |
KeyStoreOptions |
setValue(Buffer value)
Set the key store as a buffer
|
copy, getPassword, getPath, getValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKeyManagerFactory, keyManagerMapper
getTrustManagerFactory, trustManagerMapper
public KeyStoreOptions()
public KeyStoreOptions(KeyStoreOptions other)
other
- the options to copypublic KeyStoreOptions(JsonObject json)
json
- the JSONpublic String getType()
getType
in class KeyStoreOptions
public KeyStoreOptions setType(String type)
setType
in class KeyStoreOptions
public KeyStoreOptions setPassword(String password)
KeyStoreOptions
setPassword
in class KeyStoreOptions
password
- the passwordpublic KeyStoreOptions setPath(String path)
KeyStoreOptions
setPath
in class KeyStoreOptions
path
- the pathpublic KeyStoreOptions setValue(Buffer value)
KeyStoreOptions
setValue
in class KeyStoreOptions
value
- the key store as a bufferpublic KeyStoreOptions setPasswordProtection(Map<String,String> passwordProtection)
public KeyStoreOptions putPasswordProtection(String alias, String password)
Copyright © 2020 Eclipse. All rights reserved.