CipherFactory

Companion for CipherFactory.
Companion
class
class Object
trait Matchable
class Any

Value members

Methods

def apply(transformation: String, initForEncryption: Cipher => Unit, initForDecryption: Cipher => Unit): CipherFactory
Creates a cipher factory for the specified transformation (via Cipher.getInstance(transformation))
and using the specified functions for initializing for encryption and decryption respectively.
def apply(transformation: String, key: Key): CipherFactory
Creates a cipher factory for the specified transformation (via Cipher.getInstance(transformation)).
Ciphers are initialized with the specified key only.
def apply(transformation: String, key: Key, spec: AlgorithmParameterSpec): CipherFactory
Creates a cipher factory for the specified transformation (via Cipher.getInstance(transformation)).
Ciphers are initialized with the specified key and algorithm parameter specification.