Package | Description |
---|---|
org.apache.nifi.security.repository | |
org.apache.nifi.security.util | |
org.apache.nifi.security.util.crypto |
Modifier and Type | Method and Description |
---|---|
static Cipher |
RepositoryEncryptorUtils.initCipher(AESKeyedCipherProvider aesKeyedCipherProvider,
EncryptionMethod method,
int mode,
SecretKey key,
byte[] ivBytes) |
Modifier and Type | Method and Description |
---|---|
static EncryptionMethod |
EncryptionMethod.forAlgorithm(String algorithm) |
static EncryptionMethod |
EncryptionMethod.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EncryptionMethod[] |
EncryptionMethod.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
private int |
NiFiLegacyCipherProvider.calculateSaltLength(EncryptionMethod encryptionMethod)
Deprecated.
|
private Cipher |
BcryptCipherProvider.createCipherAndHandleExceptions(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
byte[] iv,
int keyLength,
boolean encryptMode,
boolean useLegacyKeyDerivation) |
byte[] |
NiFiLegacyCipherProvider.generateSalt(EncryptionMethod encryptionMethod)
Deprecated.
|
abstract Cipher |
KeyedCipherProvider.getCipher(EncryptionMethod encryptionMethod,
SecretKey key,
boolean encryptMode)
Returns an initialized cipher for the specified algorithm.
|
Cipher |
AESKeyedCipherProvider.getCipher(EncryptionMethod encryptionMethod,
SecretKey key,
boolean encryptMode)
Returns an initialized cipher for the specified algorithm.
|
abstract Cipher |
KeyedCipherProvider.getCipher(EncryptionMethod encryptionMethod,
SecretKey key,
byte[] iv,
boolean encryptMode)
Returns an initialized cipher for the specified algorithm.
|
Cipher |
AESKeyedCipherProvider.getCipher(EncryptionMethod encryptionMethod,
SecretKey key,
byte[] iv,
boolean encryptMode)
Returns an initialized cipher for the specified algorithm.
|
Cipher |
OpenSSLPKCS5CipherProvider.getCipher(EncryptionMethod encryptionMethod,
String password,
boolean encryptMode)
Convenience method without key length parameter.
|
Cipher |
OpenSSLPKCS5CipherProvider.getCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
boolean encryptMode)
Convenience method without key length parameter.
|
abstract Cipher |
RandomIVPBECipherProvider.getCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
byte[] iv,
int keyLength,
boolean encryptMode)
Returns an initialized cipher for the specified algorithm.
|
Cipher |
PBKDF2CipherProvider.getCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
byte[] iv,
int keyLength,
boolean encryptMode)
Returns an initialized cipher for the specified algorithm.
|
Cipher |
Argon2CipherProvider.getCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
byte[] iv,
int keyLength,
boolean encryptMode)
Returns an initialized cipher for the specified algorithm.
|
Cipher |
ScryptCipherProvider.getCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
byte[] iv,
int keyLength,
boolean encryptMode)
Returns an initialized cipher for the specified algorithm.
|
Cipher |
BcryptCipherProvider.getCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
byte[] iv,
int keyLength,
boolean encryptMode)
Returns an initialized cipher for the specified algorithm.
|
Cipher |
OpenSSLPKCS5CipherProvider.getCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
int keyLength,
boolean encryptMode)
Returns an initialized cipher for the specified algorithm.
|
Cipher |
PBECipherProvider.getCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
int keyLength,
boolean encryptMode)
Returns an initialized cipher for the specified algorithm.
|
Cipher |
PBKDF2CipherProvider.getCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
int keyLength,
boolean encryptMode)
Returns an initialized cipher for the specified algorithm.
|
Cipher |
Argon2CipherProvider.getCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
int keyLength,
boolean encryptMode)
Returns an initialized cipher for the specified algorithm.
|
Cipher |
ScryptCipherProvider.getCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
int keyLength,
boolean encryptMode)
Returns an initialized cipher for the specified algorithm.
|
Cipher |
NiFiLegacyCipherProvider.getCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
int keyLength,
boolean encryptMode)
Deprecated.
Returns an initialized cipher for the specified algorithm.
|
Cipher |
BcryptCipherProvider.getCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
int keyLength,
boolean encryptMode)
Returns an initialized cipher for the specified algorithm.
|
protected Cipher |
AESKeyedCipherProvider.getInitializedCipher(EncryptionMethod encryptionMethod,
SecretKey key,
byte[] iv,
boolean encryptMode) |
protected Cipher |
OpenSSLPKCS5CipherProvider.getInitializedCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
boolean encryptMode) |
protected Cipher |
PBKDF2CipherProvider.getInitializedCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
byte[] iv,
int keyLength,
boolean encryptMode) |
protected Cipher |
Argon2CipherProvider.getInitializedCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
byte[] iv,
int keyLength,
boolean encryptMode) |
protected Cipher |
ScryptCipherProvider.getInitializedCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
byte[] iv,
int keyLength,
boolean encryptMode) |
protected Cipher |
BcryptCipherProvider.getInitializedCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
byte[] iv,
int keyLength,
boolean encryptMode,
boolean useLegacyKeyDerivation) |
Cipher |
BcryptCipherProvider.getLegacyDecryptCipher(EncryptionMethod encryptionMethod,
String password,
byte[] salt,
byte[] iv,
int keyLength)
Returns a
Cipher instance in Cipher.DECRYPT_MODE configured with the provided inputs and using the
legacy key derivation process for Bcrypt where the complete Bcrypt hash output (including algorithm, work
factor, and salt) was used as the input to the key stretching SHA-512 digest function. |
static int |
CipherUtility.getMaximumPasswordLengthForAlgorithmOnLimitedStrengthCrypto(EncryptionMethod encryptionMethod) |
static boolean |
CipherUtility.passwordLengthIsValidForAlgorithmOnLimitedStrengthCrypto(int passwordLength,
EncryptionMethod encryptionMethod) |
byte[] |
NiFiLegacyCipherProvider.readSalt(EncryptionMethod encryptionMethod,
InputStream in)
Deprecated.
Returns the salt provided as part of the cipher stream, or throws an exception if one cannot be detected.
|
protected void |
OpenSSLPKCS5CipherProvider.validateSalt(EncryptionMethod encryptionMethod,
byte[] salt) |
protected void |
NiFiLegacyCipherProvider.validateSalt(EncryptionMethod encryptionMethod,
byte[] salt)
Deprecated.
|
Copyright © 2021 Apache NiFi Project. All rights reserved.