final class S3CryptoScheme
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
AES |
private ContentCryptoScheme |
contentCryptoScheme |
private S3KeyWrapScheme |
kwScheme |
(package private) static java.lang.String |
RSA |
private static java.security.SecureRandom |
srand |
Modifier | Constructor and Description |
---|---|
private |
S3CryptoScheme(ContentCryptoScheme contentCryptoScheme,
S3KeyWrapScheme kwScheme) |
Modifier and Type | Method and Description |
---|---|
(package private) static S3CryptoScheme |
from(CryptoMode mode) |
(package private) ContentCryptoScheme |
getContentCryptoScheme() |
(package private) S3KeyWrapScheme |
getKeyWrapScheme() |
(package private) java.security.SecureRandom |
getSecureRandom() |
(package private) static boolean |
isAesGcm(java.lang.String cipherAlgorithm)
Convenient method.
|
static final java.lang.String AES
static final java.lang.String RSA
private static final java.security.SecureRandom srand
private final S3KeyWrapScheme kwScheme
private final ContentCryptoScheme contentCryptoScheme
private S3CryptoScheme(ContentCryptoScheme contentCryptoScheme, S3KeyWrapScheme kwScheme)
java.security.SecureRandom getSecureRandom()
ContentCryptoScheme getContentCryptoScheme()
S3KeyWrapScheme getKeyWrapScheme()
static boolean isAesGcm(java.lang.String cipherAlgorithm)
static S3CryptoScheme from(CryptoMode mode)