case class SecureConfig(promptForInput: UserInput) extends Product with Serializable
- Alphabetic
- By Inheritance
- SecureConfig
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val promptForInput: UserInput
- def readConfigPassword(): Array[Byte]
- returns
the application config password used to encrypt the config
- Attributes
- protected
- def readSecureConfigAtPath(pathToEncryptedConfig: Path): Option[Config]
read the configuration from the given path, prompting for the password via 'promptForInput' should the SecureConfig.SecureEnvVariableName environment variable not be set
read the configuration from the given path, prompting for the password via 'promptForInput' should the SecureConfig.SecureEnvVariableName environment variable not be set
- pathToEncryptedConfig
the path pointing at the encrypted config
- returns
a configuration if the file exists
- def setupSecureConfig(defaultSecureConfigFilePath: Path, requiredPaths: Seq[String] = Nil): Path
- defaultSecureConfigFilePath
the default path to store the configuration in, either from the --secure=x/y/z user arg, and env variable or default
- requiredPaths
a potentially empty list of configuration paths which need to have values specified
- returns
the path to the secure config
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def updateSecureConfig(configPath: Path, requiredPaths: Seq[String]): Path
prompt for and set some secure values
prompt for and set some secure values
- configPath
the path where the secure config is written
- requiredPaths
a potentially empty list of configuration paths which need to have values specified
- returns
the path to the encrypted configuration file
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()