24 */ |
24 */ |
25 |
25 |
26 package sun.security.mscapi; |
26 package sun.security.mscapi; |
27 |
27 |
28 import java.math.BigInteger; |
28 import java.math.BigInteger; |
29 import java.security.InvalidKeyException; |
|
30 import java.security.KeyException; |
29 import java.security.KeyException; |
31 import java.security.KeyRep; |
30 import java.security.KeyRep; |
32 import java.security.ProviderException; |
31 import java.security.ProviderException; |
33 import java.security.PublicKey; |
|
34 |
32 |
35 import sun.security.rsa.RSAPublicKeyImpl; |
33 import sun.security.rsa.RSAPublicKeyImpl; |
36 |
34 |
37 /** |
35 /** |
38 * The handle for an RSA public key using the Microsoft Crypto API. |
36 * The handle for an RSA public key using the Microsoft Crypto API. |
39 * |
37 * |
40 * @since 1.6 |
38 * @since 1.6 |
41 */ |
39 */ |
42 class RSAPublicKey extends Key implements java.security.interfaces.RSAPublicKey |
40 class RSAPublicKey extends Key implements java.security.interfaces.RSAPublicKey |
43 { |
41 { |
|
42 private static final long serialVersionUID = -2289561342425825391L; |
|
43 |
44 private byte[] publicKeyBlob = null; |
44 private byte[] publicKeyBlob = null; |
45 private byte[] encoding = null; |
45 private byte[] encoding = null; |
46 private BigInteger modulus = null; |
46 private BigInteger modulus = null; |
47 private BigInteger exponent = null; |
47 private BigInteger exponent = null; |
48 |
48 |