Interface sun.security.jsafe.RSAKey
All Packages Class Hierarchy This Package Previous Next Index
Interface sun.security.jsafe.RSAKey
- public interface RSAKey
- extends Object
RSA public and private keys expose certain information that is needed
by applications which use them. That information is exposed through
this interface.
-
getModulusLen()
- Return the size of the RSA modulus, in bits.
-
isSigningOnly()
- Returns true if this key is restricted so that it may be used only
for digital signing applications.
getModulusLen
public abstract int getModulusLen() throws InvalidKeyException
- Return the size of the RSA modulus, in bits. This constrains many
algorithms using RSA keys. For example, PKCS #1 encryption can only
encrypt blocks of up to eleven bytes less than this size, and the
size of the encrypted blocks is always exactly this size.
Also, since this modulus length affects the work that's involved
in the RSA factoring problem, the modulus length affects various
security policies. For example, current US export regulations do
not allow use of keys larger than 512 bits for general encryption
in exportable applications.
isSigningOnly
public abstract boolean isSigningOnly() throws InvalidKeyException
- Returns true if this key is restricted so that it may be used only
for digital signing applications.
All Packages Class Hierarchy This Package Previous Next Index