1 |
/* Certificate.java --- Certificate class |
/* Certificate.java --- Certificate class |
2 |
Copyright (C) 1999,2003 Free Software Foundation, Inc. |
Copyright (C) 1999, 2003, 2004 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
38 |
|
|
39 |
package java.security.cert; |
package java.security.cert; |
40 |
|
|
|
import java.security.PublicKey; |
|
|
import java.security.NoSuchAlgorithmException; |
|
|
import java.security.InvalidKeyException; |
|
|
import java.security.NoSuchProviderException; |
|
|
import java.security.SignatureException; |
|
|
import java.io.ObjectInputStream; |
|
41 |
import java.io.ByteArrayInputStream; |
import java.io.ByteArrayInputStream; |
42 |
import java.io.InvalidObjectException; |
import java.io.InvalidObjectException; |
43 |
import java.io.ObjectStreamException; |
import java.io.ObjectStreamException; |
44 |
import java.io.Serializable; |
import java.io.Serializable; |
45 |
|
import java.security.InvalidKeyException; |
46 |
|
import java.security.NoSuchAlgorithmException; |
47 |
|
import java.security.NoSuchProviderException; |
48 |
|
import java.security.PublicKey; |
49 |
|
import java.security.SignatureException; |
50 |
|
|
51 |
/** |
/** |
52 |
* The Certificate class is an abstract class used to manage |
* The Certificate class is an abstract class used to manage |
115 |
if( getEncoded().length != x.getEncoded().length ) |
if( getEncoded().length != x.getEncoded().length ) |
116 |
return false; |
return false; |
117 |
|
|
118 |
byte b1[] = getEncoded(); |
byte[] b1 = getEncoded(); |
119 |
byte b2[] = x.getEncoded(); |
byte[] b2 = x.getEncoded(); |
120 |
|
|
121 |
for( int i = 0; i < b1.length; i++ ) |
for( int i = 0; i < b1.length; i++ ) |
122 |
if( b1[i] != b2[i] ) |
if( b1[i] != b2[i] ) |