KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > interfaces > RSAMultiPrimePrivateCrtKey


1 /*
2  * @(#)RSAMultiPrimePrivateCrtKey.java 1.6 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.security.interfaces;
9
10 import java.math.BigInteger JavaDoc;
11 import java.security.spec.RSAOtherPrimeInfo JavaDoc;
12
13 /**
14  * The interface to an RSA multi-prime private key, as defined in the
15  * PKCS#1 v2.1, using the <i>Chinese Remainder Theorem</i>
16  * (CRT) information values.
17  *
18  * @author Valerie Peng
19  *
20  * @version 1.6 03/12/19
21  *
22  * @see java.security.spec.RSAPrivateKeySpec
23  * @see java.security.spec.RSAMultiPrimePrivateCrtKeySpec
24  * @see RSAPrivateKey
25  * @see RSAPrivateCrtKey
26  *
27  * @since 1.4
28  */

29
30 public interface RSAMultiPrimePrivateCrtKey extends RSAPrivateKey JavaDoc {
31
32     static final long serialVersionUID = 618058533534628008L;
33
34     /**
35      * Returns the public exponent.
36      *
37      * @return the public exponent.
38      */

39     public BigInteger JavaDoc getPublicExponent();
40
41     /**
42      * Returns the primeP.
43      *
44      * @return the primeP.
45      */

46     public BigInteger JavaDoc getPrimeP();
47
48     /**
49      * Returns the primeQ.
50      *
51      * @return the primeQ.
52      */

53     public BigInteger JavaDoc getPrimeQ();
54
55     /**
56      * Returns the primeExponentP.
57      *
58      * @return the primeExponentP.
59      */

60     public BigInteger JavaDoc getPrimeExponentP();
61
62     /**
63      * Returns the primeExponentQ.
64      *
65      * @return the primeExponentQ.
66      */

67     public BigInteger JavaDoc getPrimeExponentQ();
68
69     /**
70      * Returns the crtCoefficient.
71      *
72      * @return the crtCoefficient.
73      */

74     public BigInteger JavaDoc getCrtCoefficient();
75
76     /**
77      * Returns the otherPrimeInfo or null if there are only
78      * two prime factors (p and q).
79      *
80      * @return the otherPrimeInfo.
81      */

82     public RSAOtherPrimeInfo JavaDoc[] getOtherPrimeInfo();
83 }
84
Popular Tags