public class EncryptParams extends Object
| Constructor and Description |
|---|
EncryptParams(EncryptAlgorithmType algorithmType)
Create an EncryptParams with the given algorithmType and an unspecified
initial vector.
|
EncryptParams(EncryptAlgorithmType algorithmType,
int initialVectorLength)
Create an EncryptParams with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
EncryptAlgorithmType |
getAlgorithmType()
Get the algorithm type.
|
Blob |
getInitialVector()
Get the initial vector.
|
EncryptParams |
setAlgorithmType(EncryptAlgorithmType algorithmType)
Set the algorithm type.
|
EncryptParams |
setInitialVector(Blob initialVector)
Set the initial vector.
|
public EncryptParams(EncryptAlgorithmType algorithmType, int initialVectorLength)
algorithmType - The algorithm type, or null if not specified.initialVectorLength - The initial vector length, or 0 if the initial
vector is not specified.public EncryptParams(EncryptAlgorithmType algorithmType)
algorithmType - The algorithm type, or null if not specified.public final EncryptAlgorithmType getAlgorithmType()
public final Blob getInitialVector()
public final EncryptParams setAlgorithmType(EncryptAlgorithmType algorithmType)
algorithmType - The algorithm type. If not specified, set to null.public final EncryptParams setInitialVector(Blob initialVector)
initialVector - The initial vector. If not specified, set to the
default Blob() where isNull() is true.Copyright © 2019. All rights reserved.