java.security.cert
@Deprecated public interface Certificate
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.Certificate
Modifier and Type | Method and Description |
---|---|
void |
decode(InputStream stream)
Deprecated.
Decodes a certificate from the given
InputStream . |
void |
encode(OutputStream stream)
Deprecated.
Encodes this certificate to an output stream.
|
String |
getFormat()
Deprecated.
Returns a string identifying the format of this certificate.
|
Principal |
getGuarantor()
Deprecated.
Returns the guarantor of this certificate.
|
Principal |
getPrincipal()
Deprecated.
Returns the principal of this certificate.
|
PublicKey |
getPublicKey()
Deprecated.
Returns the public key of this certificate.
|
String |
toString(boolean detailed)
Deprecated.
Returns a string containing a concise, human-readable description of the
this
Certificate . |
void decode(InputStream stream) throws KeyException, IOException
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.encode(OutputStream)
,
getFormat()
void encode(OutputStream stream) throws KeyException, IOException
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.decode(InputStream)
String getFormat()
Principal getGuarantor()
getPrincipal()
.getPrincipal()
Principal getPrincipal()
getGuarantor()
.getGuarantor()
PublicKey getPublicKey()
getGuarantor()
,
getPrincipal()
String toString(boolean detailed)
Certificate
.detailed
- whether or not this method should return detailed information.