Package com.codingchili.core.security
Class KeyStoreBuilder<E>
java.lang.Object
com.codingchili.core.security.KeyStoreBuilder<E>
- Type Parameters:
E
- the fluent object to return when builder is completed.
Keystore builder for use in #
SecuritySettings
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Completes the building by calling the completer and returning the provided object as a fluent, allowing the building class to resume fluent calls to the provider of the builder.reads the password from the console when build is called.setPassword(String pwd)
setShortName(String shortName)
-
Constructor Details
-
KeyStoreBuilder
- Parameters:
fluent
- the object to be returned when building is completed.completer
- called with the result.
-
-
Method Details
-
build
Completes the building by calling the completer and returning the provided object as a fluent, allowing the building class to resume fluent calls to the provider of the builder.- Returns:
- object specified by the builder provider.
-
setPassword
- Parameters:
pwd
- password to set for the keystore.- Returns:
- fluent
-
setPath
- Parameters:
path
- to the keystore .jks file.- Returns:
- fluent
-
setShortName
- Parameters:
shortName
- the keystore identifier to set.- Returns:
- fluent
-
readPasswordFromConsole
reads the password from the console when build is called.- Returns:
- fluent
-