public class X509Formatter
extends java.lang.Object
| Constructor and Description |
|---|
X509Formatter(FormatMode mode)
Creates a new X509Formatter object
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(java.security.cert.X509Certificate cert)
Produces a human readable text representation of the provided certificate.
|
java.lang.String |
format(java.security.cert.X509Certificate[] certChain)
Produces a human readable text representation of the provided certificate chain.
|
java.lang.String |
format(java.security.cert.X509Certificate[] certChain,
boolean preamble)
Produces a human readable text representation of the provided certificate chain.
|
public X509Formatter(FormatMode mode)
mode - the formatting mode that will be used by this object.public java.lang.String format(java.security.cert.X509Certificate cert)
cert - input certificatepublic java.lang.String format(java.security.cert.X509Certificate[] certChain)
certChain - input certificatespublic java.lang.String format(java.security.cert.X509Certificate[] certChain,
boolean preamble)
certChain - input certificatespreamble - whether to print a first line with an information on
the number of elements.