Modifier and Type | Class and Description |
---|---|
public static class | |
public static class |
Modifier and Type | Field and Description |
---|---|
public static final int | |
public static final int | |
public static final int | |
public static final int | |
private static final Class | |
private static final boolean | |
private static final Class | |
private static final Class | |
private static final Class | |
private final RSAUtil. | |
private static final Class |
Access | Constructor and Description |
---|---|
private | |
public |
Modifier and Type | Method and Description |
---|---|
pack-priv static void | |
public static void | checkKeyLengths(int
the bit length of the RSA modulus. modulusLen, BigInteger the RSA exponent exponent, int if > 0, check to see if modulusLen is at
least this long, otherwise unused. minModulusLen, int caller will allow this max number of bits.
Allow the smaller of the system-defined maximum and this param. maxModulusLen)Check the length of an RSA key modulus/exponent to make sure it is not too short or long. |
pack-priv static void | |
protected PrivateKey | engineGeneratePrivate(KeySpec
the specification (key material) of the private key. keySpec)Implements abstract java. |
protected PublicKey | engineGeneratePublic(KeySpec
the specification (key material) of the public key. keySpec)Implements abstract java. |
protected <T extends KeySpec> T | engineGetKeySpec(Key
the key. key, Class<T> the specification class in which
the key material should be returned. keySpec)Implements abstract java. |
protected Key | engineTranslateKey(Key
the key whose provider is unknown or untrusted. key)Implements abstract java. |
private PrivateKey | |
private PublicKey | |
pack-priv static RSAKeyFactory | |
public static RSAKey | |
private PrivateKey | |
private PublicKey |
MAX_MODLEN | back to summary |
---|---|
public static final int MAX_MODLEN |
MAX_MODLEN_RESTRICT_EXP | back to summary |
---|---|
public static final int MAX_MODLEN_RESTRICT_EXP |
MAX_RESTRICTED_EXPLEN | back to summary |
---|---|
public static final int MAX_RESTRICTED_EXPLEN |
MIN_MODLEN | back to summary |
---|---|
public static final int MIN_MODLEN |
PKCS8_KEYSPEC_CLS | back to summary |
---|---|
private static final Class<?> PKCS8_KEYSPEC_CLS |
restrictExpLen | back to summary |
---|---|
private static final boolean restrictExpLen |
RSA_PRIV_KEYSPEC_CLS | back to summary |
---|---|
private static final Class<?> RSA_PRIV_KEYSPEC_CLS |
RSA_PRIVCRT_KEYSPEC_CLS | back to summary |
---|---|
private static final Class<?> RSA_PRIVCRT_KEYSPEC_CLS |
RSA_PUB_KEYSPEC_CLS | back to summary |
---|---|
private static final Class<?> RSA_PUB_KEYSPEC_CLS |
type | back to summary |
---|---|
private final RSAUtil. |
X509_KEYSPEC_CLS | back to summary |
---|---|
private static final Class<?> X509_KEYSPEC_CLS |
RSAKeyFactory | back to summary |
---|---|
private RSAKeyFactory() |
RSAKeyFactory | back to summary |
---|---|
public RSAKeyFactory(RSAUtil. |
checkKeyAlgo | back to summary |
---|---|
pack-priv static void checkKeyAlgo(Key key, String expectedAlg) throws InvalidKeyException |
checkKeyLengths | back to summary |
---|---|
public static void checkKeyLengths(int modulusLen, BigInteger exponent, int minModulusLen, int maxModulusLen) throws InvalidKeyException Check the length of an RSA key modulus/exponent to make sure it is not too short or long. Some impls have their own min and max key sizes that may or may not match with a system defined value.
|
checkRSAProviderKeyLengths | back to summary |
---|---|
pack-priv static void checkRSAProviderKeyLengths(int modulusLen, BigInteger exponent) throws InvalidKeyException |
engineGeneratePrivate | back to summary |
---|---|
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException Implements abstract java. Doc from java. Generates a private key object from the provided key specification (key material).
|
engineGeneratePublic | back to summary |
---|---|
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException Implements abstract java. Doc from java. Generates a public key object from the provided key specification (key material).
|
engineGetKeySpec | back to summary |
---|---|
protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpec) throws InvalidKeySpecException Implements abstract java. Doc from java. Returns a specification (key material) of the given key
object.
|
engineTranslateKey | back to summary |
---|---|
protected Key engineTranslateKey(Key key) throws InvalidKeyException Implements abstract java. Translate an RSA key into a SunRsaSign RSA key. If conversion is not possible, throw an InvalidKeyException. See also JCA doc.
|
generatePrivate | back to summary |
---|---|
private PrivateKey generatePrivate(KeySpec keySpec) throws GeneralSecurityException |
generatePublic | back to summary |
---|---|
private PublicKey generatePublic(KeySpec keySpec) throws GeneralSecurityException |
getInstance | back to summary |
---|---|
pack-priv static RSAKeyFactory getInstance(RSAUtil. |
toRSAKey | back to summary |
---|---|
public static RSAKey toRSAKey(Key key) throws InvalidKeyException Static method to convert Key into an instance of RSAPublicKeyImpl or RSAPrivate(Crt)KeyImpl. If the key is not an RSA key or cannot be used, throw an InvalidKeyException. Used by RSASignature and RSACipher. |
translatePrivateKey | back to summary |
---|---|
private PrivateKey translatePrivateKey(PrivateKey key) throws InvalidKeyException |
translatePublicKey | back to summary |
---|---|
private PublicKey translatePublicKey(PublicKey key) throws InvalidKeyException |
Access | Constructor and Description |
---|---|
public |
Legacy | back to summary |
---|---|
public Legacy() |
Access | Constructor and Description |
---|---|
public |
PSS | back to summary |
---|---|
public PSS() |