Skip to Content
Java in a Nutshell, 5th Edition
book

Java in a Nutshell, 5th Edition

by David Flanagan
March 2005
Intermediate to advanced
1254 pages
104h 21m
English
O'Reilly Media, Inc.
Content preview from Java in a Nutshell, 5th Edition

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( );  
}
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java in a Nutshell, 8th Edition

Java in a Nutshell, 8th Edition

Benjamin J. Evans, Jason Clark, David Flanagan
Java in a Nutshell, 7th Edition

Java in a Nutshell, 7th Edition

Benjamin J. Evans, David Flanagan
Learning Java, 5th Edition

Learning Java, 5th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck
Learning Java, 4th Edition

Learning Java, 4th Edition

Patrick Niemeyer, Daniel Leuck

Publisher Resources

ISBN: 0596007736Supplemental ContentErrata Page