Methods Summary |
---|
public boolean | equals(java.lang.Object obj)Compares the argument to this Certificate. If both have the same bytes
they are assumed to be equal.
if (obj == this) {
return true;
}
if (!(obj instanceof Certificate)) {
return false;
}
Certificate object = (Certificate) obj;
try {
return Arrays.equals(getEncoded(), object.getEncoded());
} catch (CertificateEncodingException e) {
return false;
}
|
public abstract byte[] | getEncoded()Returns the encoded representation for this certificate.
|
public abstract java.security.PublicKey | getPublicKey()Returns the public key corresponding to this certificate.
|
public int | hashCode()Returns an integer hash code for the receiver. Any two objects which
return true when passed to equals must answer
the same value for this method.
int res = 0;
try {
byte[] array = getEncoded();
for (int i=0; i<array.length; i++) {
res += array[i];
}
} catch (CertificateEncodingException e) {
}
return res;
|
public abstract java.lang.String | toString()Returns a string containing a concise, human-readable description of the
receiver.
|
public abstract void | verify(java.security.PublicKey key)Verifies that this certificate was signed with the given public key.
|
public abstract void | verify(java.security.PublicKey key, java.lang.String sigProvider)Verifies that this certificate was signed with the given public key. Uses
the signature algorithm given by the provider.
|