java.lang.Object | |
↳ | java.security.cert.Certificate |
Known Direct Subclasses |
Abstract class to represent identity certificates. It represents a way to verify the binding of a Principal and its public key. Examples are X.509, PGP, and SDSI.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Certificate.CertificateRep |
The alternate
Serializable
class to be used for serialization and
deserialization of
Certificate
objects.
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Creates a new
Certificate
with the specified type.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Compares the argument to the certificate, and returns
true
if they
represent the
same
object using a class specific comparison.
|
||||||||||
|
Returns the encoded representation for this certificate.
|
||||||||||
|
Returns the public key corresponding to this certificate.
|
||||||||||
|
Returns the certificate type.
|
||||||||||
|
Returns an integer hash code for the certificate.
|
||||||||||
|
Returns a string containing a concise, human-readable description of the
certificate.
|
||||||||||
|
Verifies that this certificate was signed with the given public key.
|
||||||||||
|
Verifies that this certificate was signed with the given public key.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Returns an alternate object to be serialized.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a new
Certificate
with the specified type.
type | the certificate type. |
---|
Compares the argument to the certificate, and returns
true
if they
represent the
same
object using a class specific comparison. The
implementation in Object returns
true
only if the argument is the
exact same object as the callee (==).
other | the object to compare with this object. |
---|
true
if the object is the same as this object,
false
if it is different from this object.
Returns the encoded representation for this certificate.
CertificateEncodingException | if the encoding fails. |
---|
Returns the public key corresponding to this certificate.
Returns the certificate type.
Returns an integer hash code for the certificate. Any two objects which
return
true
when passed to
equals
must return the same
value for this method.
Returns a string containing a concise, human-readable description of the certificate.
Verifies that this certificate was signed with the given public key. It Uses the signature algorithm given by the provider.
key | PublicKey public key for which verification should be performed. |
---|---|
sigProvider | String the name of the signature provider. |
CertificateException | if encoding errors are detected. |
---|---|
NoSuchAlgorithmException | if an unsupported algorithm is detected. |
InvalidKeyException | if an invalid key is detected. |
NoSuchProviderException | if the specified provider does not exists. |
SignatureException | if signature errors are detected. |
Verifies that this certificate was signed with the given public key.
key | PublicKey public key for which verification should be performed. |
---|
CertificateException | if encoding errors are detected. |
---|---|
NoSuchAlgorithmException | if an unsupported algorithm is detected. |
InvalidKeyException | if an invalid key is detected. |
NoSuchProviderException | if there is no default provider. |
SignatureException | if signature errors are detected. |
Returns an alternate object to be serialized.
ObjectStreamException | if the creation of the alternate object fails. |
---|