Name

RSAPrivateCrtKey

Synopsis

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.

java.security.interfaces.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( );  
}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.