public class AliceContext
extends java.lang.Object
Alice
.
You should use AliceContextBuilder
to create this class as it contains many defaults.
Modifier and Type | Class and Description |
---|---|
static class |
AliceContext.Algorithm
Algorithm used for the
Cipher |
static class |
AliceContext.GcmTagLength
Supported GCM tag lengths.
|
static class |
AliceContext.KeyLength
Cipher key length
|
static class |
AliceContext.MacAlgorithm
Supported Messsage Authentication Algorithms (MAC).
|
static class |
AliceContext.Mode
Mode used for the
Cipher |
static class |
AliceContext.Padding
Cipher algorithm padding
|
static class |
AliceContext.Pbkdf
Supported Password Based Key Derivation Function (PBKDF)
algorithms.
|
Constructor and Description |
---|
AliceContext(AliceContext.Algorithm algorithm,
AliceContext.Mode mode,
AliceContext.Padding padding,
AliceContext.KeyLength keyLength,
AliceContext.Pbkdf pbkdf,
AliceContext.MacAlgorithm macAlgorithm,
int ivLength,
AliceContext.GcmTagLength gcmTagLength,
int iterations)
Initializes a new
AliceContext for use with Alice .
|
Modifier and Type | Method and Description |
---|---|
AliceContext.Algorithm |
getAlgorithm()
|
AliceContext.GcmTagLength |
getGcmTagLength()
|
int |
getIterations()
|
int |
getIvLength()
|
AliceContext.KeyLength |
getKeyLength()
|
AliceContext.MacAlgorithm |
getMacAlgorithm()
|
AliceContext.Mode
|
getMode()
|
AliceContext.Padding |
getPadding()
|
AliceContext.Pbkdf |
getPbkdf()
|
public AliceContext(AliceContext.Algorithm algorithm, AliceContext.Mode mode, AliceContext.Padding padding, AliceContext.KeyLength keyLength, AliceContext.Pbkdf pbkdf, AliceContext.MacAlgorithm macAlgorithm, int ivLength, AliceContext.GcmTagLength gcmTagLength, int iterations)
AliceContext
for use with Alice
. Most of the inputs
are
described in the
Java Cryptography Architecture Standard Algorithm Name Documentation for JDK
8.
algorithm
- the AliceContext.Algorithm
mode
- the AliceContext.Mode
padding
- the AliceContext.Padding
keyLength
- the AliceContext.KeyLength
pbkdf
- the AliceContext.Pbkdf
macAlgorithm
- the AliceContext.MacAlgorithm
ivLength
- the length of the initialization vectorgcmTagLength
- the AliceContext.GcmTagLength
iterations
- the number of iterations used for PBKDF modespublic AliceContext.Algorithm getAlgorithm()
public AliceContext.Mode getMode()
public AliceContext.Padding getPadding()
public AliceContext.KeyLength getKeyLength()
public AliceContext.Pbkdf getPbkdf()
public AliceContext.MacAlgorithm getMacAlgorithm()
public int getIvLength()
public AliceContext.GcmTagLength getGcmTagLength()
public int getIterations()