NuanceEncryptionService

uk.gov.hmrc.webchat.services.NuanceEncryptionService
case class NuanceEncryptionService(configuration: Configuration)

Service for encrypting data to send to Nuance (Virtual Assistance) The configuration here (and algorithm) needs to match that in userid-recovery-api which contains the decryption code

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def encryptField(rawValue: String): String
def hashField(rawValue: String): String
def nuanceSafeHash(rawValue: String): String

Make a Nuance safe hash value from a raw value by hashing and then mapping non-alphanumeric characters to alphanumeric characters. Why? Nuance cannot handle chars such as "+", "-", "%" etc Algorithm takes any non-alpha char and maps to A - Z

Make a Nuance safe hash value from a raw value by hashing and then mapping non-alphanumeric characters to alphanumeric characters. Why? Nuance cannot handle chars such as "+", "-", "%" etc Algorithm takes any non-alpha char and maps to A - Z

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val crypto: Encrypter & Decrypter