Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 618
نمايش فراداده

This interface extends RSAPrivateKey and provides a decomposition (based on the Chinese remainder theorem) of the private-key value into the various pieces that comprise it. This interface is useful only if you plan to implement your own cryptographic algorithms. To use this interface, you must have a detailed understanding of the mathematics underlying RSA public-key cryptography. Given a java.security.PrivateKey object, you can use the instanceof operator to determine whether you can safely cast it to an RSAPrivateCrtKey.

Figure 14-81. java.security.interfaces.RSAPrivateCrtKey

public interface 

RSAPrivateCrtKey extends RSAPrivateKey { // Public Constants

5.0 public static final long

serialVersionUID ; =-5682214253527700368 // Public Instance Methods java.math.BigInteger

getCrtCoefficient ( ); java.math.BigInteger

getPrimeExponentP ( ); java.math.BigInteger

getPrimeExponentQ ( ); java.math.BigInteger

getPrimeP ( ); java.math.BigInteger

getPrimeQ ( ); java.math.BigInteger

getPublicExponent ( ); }