src/share/classes/java/security/cert/Certificate.java
Print this page
*** 88,99 ****
return this.type;
}
/**
* Compares this certificate for equality with the specified
! * object. If the <code>other</code> object is an
! * <code>instanceof</code> <code>Certificate</code>, then
* its encoded form is retrieved and compared with the
* encoded form of this certificate.
*
* @param other the object to test for equality with this certificate.
* @return true iff the encoded forms of the two certificates
--- 88,99 ----
return this.type;
}
/**
* Compares this certificate for equality with the specified
! * object. If the {@code other} object is an
! * {@code instanceof} {@code Certificate}, then
* its encoded form is retrieved and compared with the
* encoded form of this certificate.
*
* @param other the object to test for equality with this certificate.
* @return true iff the encoded forms of the two certificates
*** 194,205 ****
* supplied by the specified provider. Note that the specified
* Provider object does not have to be registered in the provider list.
*
* <p> This method was added to version 1.8 of the Java Platform
* Standard Edition. In order to maintain backwards compatibility with
! * existing service providers, this method cannot be <code>abstract</code>
! * and by default throws an <code>UnsupportedOperationException</code>.
*
* @param key the PublicKey used to carry out the verification.
* @param sigProvider the signature provider.
*
* @exception NoSuchAlgorithmException on unsupported signature
--- 194,205 ----
* supplied by the specified provider. Note that the specified
* Provider object does not have to be registered in the provider list.
*
* <p> This method was added to version 1.8 of the Java Platform
* Standard Edition. In order to maintain backwards compatibility with
! * existing service providers, this method cannot be {@code abstract}
! * and by default throws an {@code UnsupportedOperationException}.
*
* @param key the PublicKey used to carry out the verification.
* @param sigProvider the signature provider.
*
* @exception NoSuchAlgorithmException on unsupported signature