public class CipherRSAFactory
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ALGORITHM_WAS_INVALID |
|
static java.lang.String |
ALGORITHM_WAS_INVALID_INIT_CIPHER |
|
static java.lang.String |
KEY_WAS_INVALID_INIT_CIPHER |
|
static java.lang.String |
PADDING_WAS_INVALID |
| Constructor | Description |
|---|---|
CipherRSAFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
javax.crypto.Cipher |
forDecrypt(Transformation transformation,
java.security.Key key) |
|
javax.crypto.Cipher |
forEncrypt(Transformation transformation,
java.security.Key key) |
|
protected javax.crypto.Cipher |
makeCipher(Transformation transformation,
java.security.Key key,
int mode,
java.security.spec.AlgorithmParameterSpec spec) |
|
protected java.security.spec.AlgorithmParameterSpec |
makeSpec(Transformation transformation) |
public static final java.lang.String ALGORITHM_WAS_INVALID
public static final java.lang.String PADDING_WAS_INVALID
public static final java.lang.String KEY_WAS_INVALID_INIT_CIPHER
public static final java.lang.String ALGORITHM_WAS_INVALID_INIT_CIPHER
public javax.crypto.Cipher forEncrypt(Transformation transformation, java.security.Key key) throws CipherException
CipherExceptionpublic javax.crypto.Cipher forDecrypt(Transformation transformation, java.security.Key key) throws CipherException
CipherExceptionprotected java.security.spec.AlgorithmParameterSpec makeSpec(Transformation transformation)
protected javax.crypto.Cipher makeCipher(Transformation transformation, java.security.Key key, int mode, java.security.spec.AlgorithmParameterSpec spec) throws CipherException
CipherException