Java™ Platform
Standard Ed. 8
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
compact1, compact2, compact3
java.security
Interface Certificate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods
| Modifier and Type |
Method |
Description |
void |
decode(InputStream stream) |
Deprecated.
Decodes a certificate from an input stream.
|
void |
encode(OutputStream stream) |
Deprecated.
Encodes the certificate to an output stream in a format that can
be decoded by the decode method.
|
String |
getFormat() |
Deprecated.
Returns the name of the coding format.
|
Principal |
getGuarantor() |
Deprecated.
Returns the guarantor of the certificate, that is, the principal
guaranteeing that the public key associated with this certificate
is that of the principal associated with this certificate.
|
Principal |
getPrincipal() |
Deprecated.
Returns the principal of the principal-key pair being guaranteed by
the guarantor.
|
PublicKey |
getPublicKey() |
Deprecated.
Returns the key of the principal-key pair being guaranteed by
the guarantor.
|
String |
toString(boolean detailed) |
Deprecated.
Returns a string that represents the contents of the certificate.
|
-
-
Method Detail
-
getGuarantor
Principal getGuarantor()
Deprecated.
Returns the guarantor of the certificate, that is, the principal
guaranteeing that the public key associated with this certificate
is that of the principal associated with this certificate. For X.509
certificates, the guarantor will typically be a Certificate Authority
(such as the United States Postal Service or Verisign, Inc.).
- Returns:
- the guarantor which guaranteed the principal-key
binding.
-
encode
void encode(OutputStream stream)
throws KeyException,
IOException
Deprecated.
Encodes the certificate to an output stream in a format that can
be decoded by the decode method.
- Parameters:
stream - the output stream to which to encode the
certificate.
- Throws:
KeyException - if the certificate is not
properly initialized, or data is missing, etc.
IOException - if a stream exception occurs while
trying to output the encoded certificate to the output stream.
- See Also:
decode(java.io.InputStream),
getFormat()
-
decode
void decode(InputStream stream)
throws KeyException,
IOException
Deprecated.
Decodes a certificate from an input stream. The format should be
that returned by getFormat and produced by
encode.
- Parameters:
stream - the input stream from which to fetch the data
being decoded.
- Throws:
KeyException - if the certificate is not properly initialized,
or data is missing, etc.
IOException - if an exception occurs while trying to input
the encoded certificate from the input stream.
- See Also:
encode(java.io.OutputStream),
getFormat()
-
getFormat
String getFormat()
Deprecated.
Returns the name of the coding format. This is used as a hint to find
an appropriate parser. It could be "X.509", "PGP", etc. This is
the format produced and understood by the encode
and decode methods.
- Returns:
- the name of the coding format.
Java™ Platform
Standard Ed. 8
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.