public final class RSAKeyFactory extends java.security.KeyFactorySpi implements AlgorithmStatus
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_MODLEN |
static int |
MAX_MODLEN_RESTRICT_EXP |
static int |
MAX_RESTRICTED_EXPLEN |
static int |
MIN_MODLEN |
| Constructor and Description |
|---|
RSAKeyFactory() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkKeyLengths(int modulusLen,
java.math.BigInteger exponent,
int minModulusLen,
int maxModulusLen)
Check the length of an RSA key modulus/exponent to make sure it
is not too short or long.
|
boolean |
isFipsApproved()
Module identifies if the cryptographic operation (algorithm) is FIPS certified
|
public static final int MIN_MODLEN
public static final int MAX_MODLEN
public static final int MAX_MODLEN_RESTRICT_EXP
public static final int MAX_RESTRICTED_EXPLEN
public static void checkKeyLengths(int modulusLen,
java.math.BigInteger exponent,
int minModulusLen,
int maxModulusLen)
throws java.security.InvalidKeyException
modulusLen - the bit length of the RSA modulus.exponent - the RSA exponentminModulusLen - if > 0, check to see if modulusLen is at
least this long, otherwise unused.maxModulusLen - caller will allow this max number of bits.
Allow the smaller of the system-defined maximum and this param.java.security.InvalidKeyException - if any of the values are unacceptable.public boolean isFipsApproved()
AlgorithmStatusisFipsApproved in interface AlgorithmStatusAlgorithmStatus.isFipsApproved()© Portions Copyright 2003, 2012 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2012, Oracle and/or its affiliates. All rights reserved.