Modifier and Type | Field and Description |
---|---|
static String |
ALGORITHM
The AES algorithm name.
|
static String |
CBC_NO_PADDING
Defines "AES/CBC/NoPadding".
|
static String |
CBC_PKCS5_PADDING
Defines "AES/CBC/PKCS5Padding".
|
static String |
CTR_NO_PADDING
Defines "AES/CTR/NoPadding".
|
Constructor and Description |
---|
AES() |
Modifier and Type | Method and Description |
---|---|
static SecretKeySpec |
newSecretKeySpec(byte[] key)
Creates a new SecretKeySpec for the given key and
ALGORITHM . |
public static final String ALGORITHM
public static final String CBC_NO_PADDING
public static final String CBC_PKCS5_PADDING
public static final String CTR_NO_PADDING
public AES()
public static SecretKeySpec newSecretKeySpec(byte[] key)
ALGORITHM
.key
- a key.Copyright © 2016–2022 The Apache Software Foundation. All rights reserved.