Package eu.emi.security.authn.x509.impl
Class X509Formatter
java.lang.Object
eu.emi.security.authn.x509.impl.X509Formatter
Utility allowing for converting certificates to various text representations.
- Author:
- K. Benedyczak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat
(X509Certificate cert) Produces a human readable text representation of the provided certificate.format
(X509Certificate[] certChain) Produces a human readable text representation of the provided certificate chain.format
(X509Certificate[] certChain, boolean preamble) Produces a human readable text representation of the provided certificate chain.
-
Constructor Details
-
X509Formatter
Creates a new X509Formatter object- Parameters:
mode
- the formatting mode that will be used by this object.
-
-
Method Details
-
format
Produces a human readable text representation of the provided certificate.- Parameters:
cert
- input certificate- Returns:
- the text representation
-
format
Produces a human readable text representation of the provided certificate chain.- Parameters:
certChain
- input certificates- Returns:
- the text representation
-
format
Produces a human readable text representation of the provided certificate chain.- Parameters:
certChain
- input certificatespreamble
- whether to print a first line with an information on the number of elements.- Returns:
- the text representation
-