java.security.Certificate |
This interface is deprecated.Replaced by behavior in javax.security.cert
Certificate
represents an identity certificate, such as X.509 or PGP.
Note: A Certificate
instances does not make any statement about the
validity of itself. It's in the responsibility of the application to verify
the validity of its certificates.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Decodes a certificate from the given
InputStream . | |||||||||||
Encodes this certificate to an output stream.
| |||||||||||
Returns a string identifying the format of this certificate.
| |||||||||||
Returns the guarantor of this certificate.
| |||||||||||
Returns the principal of this certificate.
| |||||||||||
Returns the public key of this certificate.
| |||||||||||
Returns a string containing a concise, human-readable description of the
this
Certificate . |
Decodes a certificate from the given InputStream
. The format of
the data to encode must be that identified by getFormat() and
encoded by encode(OutputStream).
stream | the InputStream to read from. |
---|
KeyException | if certificate information is incomplete or incorrect. |
---|---|
IOException | if an exception is thrown by accessing the provided stream. |
Encodes this certificate to an output stream. The decode(InputStream) method must be able to decode the format written by this method.
stream | the OutputStream to encode this certificate to. |
---|
KeyException | if certificate information is incomplete or incorrect. |
---|---|
IOException | if an exception is thrown by accessing the provided stream. |
Returns a string identifying the format of this certificate.
Returns the guarantor of this certificate. That guarantor guarantees, that the public key of this certificate is from the principal returned by getPrincipal().
Returns the principal of this certificate. The principal is guaranteed by the guarantor returned by getGuarantor().
Returns the public key of this certificate. The public key is guaranteed by the guarantor to belong to the principal.
Returns a string containing a concise, human-readable description of the
this Certificate
.
detailed | whether or not this method should return detailed information. |
---|