public interface PrivateKeyObfuscator
Modifier and Type | Method and Description |
---|---|
<A extends Appendable> |
appendPrivateKeyEncryptionContext(A sb,
PrivateKeyEncryptionContext encContext) |
byte[] |
applyPrivateKeyCipher(byte[] bytes,
PrivateKeyEncryptionContext encContext,
boolean encryptIt) |
byte[] |
generateInitializationVector(PrivateKeyEncryptionContext encContext) |
String |
getCipherName() |
List<Integer> |
getSupportedKeySizes() |
String getCipherName()
List<Integer> getSupportedKeySizes()
List
of the supported key sizes - Note: every call returns a and un-modifiable
instance.<A extends Appendable> A appendPrivateKeyEncryptionContext(A sb, PrivateKeyEncryptionContext encContext) throws IOException
A
- Appendable generic typesb
- The Appendable
instance to updateencContext
- IOException
byte[] generateInitializationVector(PrivateKeyEncryptionContext encContext) throws GeneralSecurityException
encContext
- The encryption contextGeneralSecurityException
byte[] applyPrivateKeyCipher(byte[] bytes, PrivateKeyEncryptionContext encContext, boolean encryptIt) throws IOException, GeneralSecurityException
bytes
- Original bytesencContext
- The encryption contextencryptIt
- If true
then encrypt the original bytes, otherwise decrypt themIOException
- If malformed inputGeneralSecurityException
- If cannot encrypt/decryptCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.