Class: EncryptParams

EncryptParams

new EncryptParams(algorithmType, initialVectorLength)

An EncryptParams holds an algorithm type and other parameters used to encrypt and decrypt. Create an EncryptParams with the given parameters.
Parameters:
Name Type Description
algorithmType number The algorithm type from EncryptAlgorithmType, or null if not specified.
initialVectorLength number (optional) The initial vector length, or 0 if the initial vector is not specified. If ommitted, the initial vector is not specified.
Source:

Methods

getAlgorithmType() → {number}

Get the algorithmType.
Source:
Returns:
The algorithm type from EncryptAlgorithmType, or null if not specified.
Type
number

getInitialVector() → {Blob}

Get the initial vector.
Source:
Returns:
The initial vector. If not specified, isNull() is true.
Type
Blob

setAlgorithmType(algorithmType) → {EncryptParams}

Set the algorithm type.
Parameters:
Name Type Description
algorithmType number The algorithm type from EncryptAlgorithmType. If not specified, set to null.
Source:
Returns:
This EncryptParams so that you can chain calls to update values.
Type
EncryptParams

setInitialVector(initialVector) → {EncryptParams}

Set the initial vector.
Parameters:
Name Type Description
initialVector Blob The initial vector. If not specified, set to the default Blob() where isNull() is true.
Source:
Returns:
This EncryptParams so that you can chain calls to update values.
Type
EncryptParams