Module io.helidon.common.pki
Package io.helidon.common.pki
Class KeystoreKeys.BuilderBase.KeystoreKeysImpl
java.lang.Object
io.helidon.common.pki.KeystoreKeys.BuilderBase.KeystoreKeysImpl
- All Implemented Interfaces:
Prototype.Api
,KeystoreKeys
- Enclosing class:
KeystoreKeys.BuilderBase<BUILDER extends KeystoreKeys.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends KeystoreKeys>
protected static class KeystoreKeys.BuilderBase.KeystoreKeysImpl
extends Object
implements KeystoreKeys
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.common.pki.KeystoreKeys
KeystoreKeys.Builder, KeystoreKeys.BuilderBase<BUILDER extends KeystoreKeys.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends KeystoreKeys> -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
KeystoreKeysImpl
(KeystoreKeys.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionAlias of X.509 certificate of public key.List of aliases used to generate a trusted set of certificates.Alias of an X.509 chain.boolean
int
hashCode()
keyAlias()
Alias of the private key in the keystore.Optional
<char[]> Pass-phrase of the key in the keystore (used for private keys).keystore()
Keystore resource definition.Optional
<char[]> Pass-phrase of the keystore (supported with JKS and PKCS12 keystores).toString()
boolean
If you want to build a trust store, call this method to add all certificates present in the keystore to certificate list.type()
Set type of keystore.
-
Field Details
-
DEFAULT_KEYSTORE_TYPE
Default keystore type.- See Also:
-
DEFAULT_PRIVATE_KEY_ALIAS
Default private key alias.- See Also:
-
-
Constructor Details
-
KeystoreKeysImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
keystore
Description copied from interface:KeystoreKeys
Keystore resource definition.- Specified by:
keystore
in interfaceKeystoreKeys
- Returns:
- keystore resource, from file path, classpath, URL etc.
-
type
Description copied from interface:KeystoreKeys
Set type of keystore. Defaults to "PKCS12", expected are other keystore types supported by java then can store keys under aliases.- Specified by:
type
in interfaceKeystoreKeys
- Returns:
- keystore type to load the key
-
passphrase
Description copied from interface:KeystoreKeys
Pass-phrase of the keystore (supported with JKS and PKCS12 keystores).- Specified by:
passphrase
in interfaceKeystoreKeys
- Returns:
- keystore password to use
-
keyAlias
Description copied from interface:KeystoreKeys
Alias of the private key in the keystore.- Specified by:
keyAlias
in interfaceKeystoreKeys
- Returns:
- alias of the key in the keystore
-
keyPassphrase
Description copied from interface:KeystoreKeys
Pass-phrase of the key in the keystore (used for private keys). This is (by default) the same as keystore passphrase - only configure if it differs from keystore passphrase.- Specified by:
keyPassphrase
in interfaceKeystoreKeys
- Returns:
- pass-phrase of the key
-
certAlias
Description copied from interface:KeystoreKeys
Alias of X.509 certificate of public key. Used to load both the certificate and public key.- Specified by:
certAlias
in interfaceKeystoreKeys
- Returns:
- alias under which the certificate is stored in the keystore
-
certChainAlias
Description copied from interface:KeystoreKeys
Alias of an X.509 chain.- Specified by:
certChainAlias
in interfaceKeystoreKeys
- Returns:
- alias of certificate chain in the keystore
-
certAliases
Description copied from interface:KeystoreKeys
List of aliases used to generate a trusted set of certificates.- Specified by:
certAliases
in interfaceKeystoreKeys
- Returns:
- aliases of certificates
-
trustStore
public boolean trustStore()Description copied from interface:KeystoreKeys
If you want to build a trust store, call this method to add all certificates present in the keystore to certificate list.- Specified by:
trustStore
in interfaceKeystoreKeys
- Returns:
- whether this is a trust store
-
toString
-
equals
-
hashCode
public int hashCode()
-