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) |
protected byte[] |
generateInitializationVector(int keyLength) |
byte[] |
generateInitializationVector(PrivateKeyEncryptionContext encContext) |
String |
getCipherName() |
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 byte[] generateInitializationVector(int keyLength)
protected abstract int resolveKeyLength(PrivateKeyEncryptionContext encContext) throws GeneralSecurityException
GeneralSecurityExceptionprotected byte[] deriveEncryptionKey(PrivateKeyEncryptionContext encContext, int outputKeyLength) throws GeneralSecurityException
GeneralSecurityExceptionprotected byte[] applyPrivateKeyCipher(byte[] bytes,
PrivateKeyEncryptionContext encContext,
int numBits,
byte[] keyValue,
boolean encryptIt)
throws GeneralSecurityException
GeneralSecurityExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.