Package java.security
Interface Certificate
@Deprecated public interface Certificate
Deprecated.
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.- See Also:
Certificate
-
Method Summary
Modifier and Type Method Description voiddecode(InputStream stream)Deprecated.Decodes a certificate from the givenInputStream.voidencode(OutputStream stream)Deprecated.Encodes this certificate to an output stream.StringgetFormat()Deprecated.Returns a string identifying the format of this certificate.PrincipalgetGuarantor()Deprecated.Returns the guarantor of this certificate.PrincipalgetPrincipal()Deprecated.Returns the principal of this certificate.PublicKeygetPublicKey()Deprecated.Returns the public key of this certificate.StringtoString(boolean detailed)Deprecated.Returns a string containing a concise, human-readable description of the thisCertificate.
-
Method Details
-
decode
Deprecated.Decodes a certificate from the givenInputStream. The format of the data to encode must be that identified bygetFormat()and encoded byencode(OutputStream).- Parameters:
stream- theInputStreamto read from.- Throws:
KeyException- if certificate information is incomplete or incorrect.IOException- if an exception is thrown by accessing the provided stream.- See Also:
encode(OutputStream),getFormat()
-
encode
Deprecated.Encodes this certificate to an output stream. Thedecode(InputStream)method must be able to decode the format written by this method.- Parameters:
stream- theOutputStreamto encode this certificate to.- Throws:
KeyException- if certificate information is incomplete or incorrect.IOException- if an exception is thrown by accessing the provided stream.- See Also:
decode(InputStream)
-
getFormat
String getFormat()Deprecated.Returns a string identifying the format of this certificate.- Returns:
- a string identifying the format of this certificate.
-
getGuarantor
Principal getGuarantor()Deprecated.Returns the guarantor of this certificate. That guarantor guarantees, that the public key of this certificate is from the principal returned bygetPrincipal().- Returns:
- the guarantor of this certificate.
- See Also:
getPrincipal()
-
getPrincipal
Principal getPrincipal()Deprecated.Returns the principal of this certificate. The principal is guaranteed by the guarantor returned bygetGuarantor().- Returns:
- the principal of this certificate.
- See Also:
getGuarantor()
-
getPublicKey
PublicKey getPublicKey()Deprecated.Returns the public key of this certificate. The public key is guaranteed by the guarantor to belong to the principal.- Returns:
- the public key of this certificate.
- See Also:
getGuarantor(),getPrincipal()
-
toString
Deprecated.Returns a string containing a concise, human-readable description of the thisCertificate.- Parameters:
detailed- whether or not this method should return detailed information.- Returns:
- a string representation of this certificate.
-
Certificateinstead.