public abstract class AbstractPrivateKeyObfuscator extends Object implements PrivateKeyObfuscator
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPrivateKeyObfuscator(String name) |
| Modifier and Type | Method and Description |
|---|---|
<A extends Appendable> |
appendPrivateKeyEncryptionContext(A sb,
PrivateKeyEncryptionContext encContext) |
protected byte[] |
applyPrivateKeyCipher(byte[] bytes,
PrivateKeyEncryptionContext encContext,
int numBits,
byte[] keyValue,
boolean encryptIt) |
protected byte[] |
deriveEncryptionKey(PrivateKeyEncryptionContext encContext,
int outputKeyLength) |
byte[] |
generateInitializationVector(PrivateKeyEncryptionContext encContext) |
String |
getCipherName() |
protected abstract int |
resolveInitializationVectorLength(PrivateKeyEncryptionContext encContext) |
protected abstract int |
resolveKeyLength(PrivateKeyEncryptionContext encContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyPrivateKeyCipher, getSupportedKeySizesprotected AbstractPrivateKeyObfuscator(String name)
public final String getCipherName()
getCipherName in interface PrivateKeyObfuscatorpublic byte[] generateInitializationVector(PrivateKeyEncryptionContext encContext) throws GeneralSecurityException
generateInitializationVector in interface PrivateKeyObfuscatorencContext - The encryption contextGeneralSecurityExceptionpublic <A extends Appendable> A appendPrivateKeyEncryptionContext(A sb, PrivateKeyEncryptionContext encContext) throws IOException
appendPrivateKeyEncryptionContext in interface PrivateKeyObfuscatorA - Appendable generic typesb - The Appendable instance to updateIOExceptionprotected abstract int resolveInitializationVectorLength(PrivateKeyEncryptionContext encContext) throws GeneralSecurityException
GeneralSecurityExceptionprotected abstract int resolveKeyLength(PrivateKeyEncryptionContext encContext) throws GeneralSecurityException
GeneralSecurityExceptionprotected byte[] deriveEncryptionKey(PrivateKeyEncryptionContext encContext, int outputKeyLength) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionprotected byte[] applyPrivateKeyCipher(byte[] bytes,
PrivateKeyEncryptionContext encContext,
int numBits,
byte[] keyValue,
boolean encryptIt)
throws IOException,
GeneralSecurityException
IOExceptionGeneralSecurityExceptionCopyright © 2018–2021 The Apache Software Foundation. All rights reserved.