public abstract class AbstractPrivateKeyObfuscator extends java.lang.Object implements PrivateKeyObfuscator
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
algName |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPrivateKeyObfuscator(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
<A extends java.lang.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) |
java.lang.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(java.lang.String name)
public final java.lang.String getCipherName()
getCipherName in interface PrivateKeyObfuscatorpublic byte[] generateInitializationVector(PrivateKeyEncryptionContext encContext) throws java.security.GeneralSecurityException
generateInitializationVector in interface PrivateKeyObfuscatorencContext - The encryption contextjava.security.GeneralSecurityExceptionpublic <A extends java.lang.Appendable> A appendPrivateKeyEncryptionContext(A sb,
PrivateKeyEncryptionContext encContext)
throws java.io.IOException
appendPrivateKeyEncryptionContext in interface PrivateKeyObfuscatorA - Appendable generic typesb - The Appendable instance to updatejava.io.IOExceptionprotected abstract int resolveInitializationVectorLength(PrivateKeyEncryptionContext encContext) throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionprotected abstract int resolveKeyLength(PrivateKeyEncryptionContext encContext) throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionprotected byte[] deriveEncryptionKey(PrivateKeyEncryptionContext encContext, int outputKeyLength) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityExceptionprotected byte[] applyPrivateKeyCipher(byte[] bytes,
PrivateKeyEncryptionContext encContext,
int numBits,
byte[] keyValue,
boolean encryptIt)
throws java.io.IOException,
java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityException