public class RsaParameters extends AbstractAsymmetricAlgorithmParameters<RsaParameters>
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM_RSA
Algorithm for RSA encryption.
|
static int |
KEY_SIZE_1024
1024-bit key size.
|
static int |
KEY_SIZE_2048
2048-bit key size.
|
static int |
KEY_SIZE_3072
3072-bit key size.
|
static int |
KEY_SIZE_4096
4096-bit key size.
|
static int |
KEY_SIZE_512
512-bit key size.
|
static int |
KEY_SIZE_768
768-bit key size.
|
static String |
PADDING_NONE
No padding.
|
static String |
PADDING_OAEP_MD5_MGF1
Optimal Asymmetric Encryption Padding scheme defined in PKCS #1, with MD5 message digest and MGF1 mask generation
function.
|
static String |
PADDING_OAEP_SHA1_MGF1
Optimal Asymmetric Encryption Padding scheme defined in PKCS #1, with SHA1 message digest and MGF1 mask
generation function.
|
static String |
PADDING_PKCS1
The padding scheme described in: RSA Laboratories, "PKCS #1: RSA Encryption Standard," version 1.5, November
1993.
|
KEY_SIZE_128, KEY_SIZE_192, KEY_SIZE_256, MAC_ALGORITHM_HMAC_MD5, MAC_ALGORITHM_HMAC_SHA1, MAC_ALGORITHM_HMAC_SHA224, MAC_ALGORITHM_HMAC_SHA256, MAC_ALGORITHM_HMAC_SHA3_224, MAC_ALGORITHM_HMAC_SHA3_256, MAC_ALGORITHM_HMAC_SHA3_384, MAC_ALGORITHM_HMAC_SHA3_512, MAC_ALGORITHM_HMAC_SHA384, MAC_ALGORITHM_HMAC_SHA512, MAC_ALGORITHM_HMAC_SHA512_224, MAC_ALGORITHM_HMAC_SHA512_256, MAC_KEY_SIZE_128, MAC_KEY_SIZE_160| Constructor and Description |
|---|
RsaParameters()
Initializes the RsaParameters.
|
RsaParameters(TextEncoder textEncoder)
Initializes the RsaParameters with a
TextEncoder which is used to decode the key when set as a string. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getDefaultAlgorithm()
Returns the defaultAlgorithm.
|
protected int |
getDefaultKeySize()
Returns the defaultKeySize.
|
getBlockType, getPadding, getParameterSpec, getParameterSpecSize, getTransformation, loadKey, setBlockType, setDecryptionKey, setDecryptionKeyLoader, setEncryptionKey, setEncryptionKeyLoader, setPaddingcreateParameterSpec, generateParameterSpecData, getAlgorithm, getDecryptionKey, getEncryptionKey, getKeySize, getMacAlgorithm, getMacKey, getMacKeySize, getProvider, getProviderName, hasDecryptionKey, hasEncryptionKey, parseAndVerifySalt, setAlgorithm, setDecryptionKey, setDecryptionKey, setEncryptionKey, setEncryptionKey, setKeySize, setMacAlgorithm, setMacKey, setMacKey, setMacKey, setMacKeyLoader, setMacKeySize, setProvider, setProviderName, setSaltGenerator, setSaltMatcherclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateParameterSpec, generateParameterSpecData, getAlgorithm, getDecryptionKey, getEncryptionKey, getKeySize, getMacAlgorithm, getMacKey, getMacKeySize, getProvider, getProviderName, setKeySize, setMacAlgorithm, setMacKey, setMacKey, setMacKey, setMacKeyLoader, setMacKeySize, setProvider, setProviderName, setSaltGenerator, setSaltMatcherpublic static final String ALGORITHM_RSA
public static final int KEY_SIZE_512
public static final int KEY_SIZE_768
public static final int KEY_SIZE_1024
public static final int KEY_SIZE_2048
public static final int KEY_SIZE_3072
public static final int KEY_SIZE_4096
public static final String PADDING_NONE
public static final String PADDING_PKCS1
public static final String PADDING_OAEP_SHA1_MGF1
public static final String PADDING_OAEP_MD5_MGF1
public RsaParameters()
public RsaParameters(TextEncoder textEncoder)
TextEncoder which is used to decode the key when set as a string.
The default transformation is 'RSA' with a key size of 512 bits.textEncoder - the TextEncoderprotected String getDefaultAlgorithm()
getDefaultAlgorithm in class AbstractAlgorithmParameters<RsaParameters>protected int getDefaultKeySize()
getDefaultKeySize in class AbstractAlgorithmParameters<RsaParameters>