java.security.cert insteadpublic interface Certificate
This class is deprecated in favor of the new java.security.cert package. It exists for backward compatibility only.
| Modifier and Type | Method and Description |
|---|---|
void |
decode(InputStream in)
Deprecated.
This method reads an encoded certificate from an
InputStream. |
void |
encode(OutputStream out)
Deprecated.
This method writes the certificate to an
OutputStream in
a format that can be understood by the decode method. |
String |
getFormat()
Deprecated.
This method returns the encoding format of the certificate (e.g., "PGP",
"X.509").
|
Principal |
getGuarantor()
Deprecated.
This method returns the
Principal that is guaranteeing
this certificate. |
Principal |
getPrincipal()
Deprecated.
This method returns the
Principal being guaranteed by
this certificate. |
PublicKey |
getPublicKey()
Deprecated.
This method returns the public key for the
Principal that
is being guaranteed. |
String |
toString(boolean detail)
Deprecated.
This method returns a
String representation of the contents
of this certificate. |
Principal getGuarantor()
Principal that is guaranteeing
this certificate.Principal guaranteeing the certificatePrincipal getPrincipal()
Principal being guaranteed by
this certificate.Principal guaranteed by this certificatePublicKey getPublicKey()
Principal that
is being guaranteed.PublicKey of the Principal being guaranteedvoid encode(OutputStream out) throws KeyException, IOException
OutputStream in
a format that can be understood by the decode method.out - the OutputStream to write toKeyException - if there is a problem with the certificateIOException - if an error occurs writing to the streamdecode(InputStream),
getFormat()void decode(InputStream in) throws KeyException, IOException
InputStream.in - the InputStream to read fromKeyException - if there is a problem with the certificate dataIOException - if an error occurs reading from the streamencode(OutputStream),
getFormat()String getFormat()
encode and
decode methods.