class ConfigEncryptor extends AnyRef
Class that holds methods to encrypt and decrypt certain fields in configuration. This functionality is required to safely store configuration with sensitive data in the Data Quality storage.
- Alphabetic
- By Inheritance
- ConfigEncryptor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ConfigEncryptor(secret: EncryptionKey, keyFields: Seq[String] = Seq("password", "secret"))
- secret
Secret string used to encrypt/decrypt sensitive fields
- keyFields
List of key fields used to identify fields that requires encryption/decryption. If field name contains some of these fields then it will be subjected to encryption/decryption.
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
decrypt(value: String): String
Decrypts string value using AES256 algorithm.
Decrypts string value using AES256 algorithm. Uses user-defined secret key for decryption.
- value
String value to decrypt
- returns
Either decrypted string or a list of decryption errors.
-
def
decryptConfig(config: Config): Result[Config]
Decrypts sensitive fields in the provided configuration
Decrypts sensitive fields in the provided configuration
- config
Configuration to encrypt
- returns
New configuration instance with sensitive fields being decrypted.
-
def
encrypt(value: String): String
Encrypts string value using AES256 algorithm.
Encrypts string value using AES256 algorithm. Uses user-defined secret key for encryption.
- value
String value to encrypt
- returns
Either encrypted string or a list of encryption errors.
-
def
encryptConfig(config: Config): Result[Config]
Encrypts sensitive fields in the provided configuration
Encrypts sensitive fields in the provided configuration
- config
Configuration to encrypt
- returns
New configuration instance with sensitive fields being encrypted.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- 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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()