tock / ai.tock.shared.security

## Package ai.tock.shared.security

User definition and encryption methods

### Types

#### MapObfuscator | Obfuscate a map. `interface MapObfuscator`
#### ObfuscatorService | To load obfuscators via service loaders. `interface ObfuscatorService`
#### RequestFilter | A request filter is used to filter an incoming request. `interface RequestFilter`
#### SimpleObfuscator | Simple implementation for StringObfuscator. `data class SimpleObfuscator : StringObfuscator`
#### StringObfuscator | Replaces a string by an other String. `interface StringObfuscator`
#### TockObfuscatorService | To manage obfuscations. `object TockObfuscatorService`
#### TockUser | Tock implementation of vertx User. `data class TockUser : AbstractUser`
#### TockUserListener | Tock user admin listener. `interface TockUserListener`
#### TockUserRole | The user roles for TockUser. `enum class TockUserRole`
#### UserLogin | `typealias UserLogin = String`

### Exceptions

#### NoEncryptionPassException | Thrown when trying to encrypt with no encryption pass set. `class NoEncryptionPassException : IllegalStateException`

### Properties

#### encryptionEnabled | Is encryption enabled? `val encryptionEnabled: Boolean`
#### UNKNOWN_USER_LOGIN | `const val UNKNOWN_USER_LOGIN: String`

### Functions

#### createRequestFilter | `fun createRequestFilter(allowedIps: Set<String>?, xAuthToken: String?): RequestFilter`
#### decrypt | Decrypt a string and return the result. `fun decrypt(s: String): String`
#### encrypt | Encrypt a string and return the result. `fun encrypt(s: String): String`
#### initEncryptor | Init encryption utilities. `fun initEncryptor(): Unit`
#### shaS256 | Encrypt with sha256. `fun shaS256(s: String): String`