public class X509Formatter extends Object
Constructor and Description |
---|
X509Formatter(FormatMode mode)
Creates a new X509Formatter object
|
Modifier and Type | Method and Description |
---|---|
String |
format(X509Certificate cert)
Produces a human readable text representation of the provided certificate.
|
String |
format(X509Certificate[] certChain)
Produces a human readable text representation of the provided certificate chain.
|
String |
format(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 String format(X509Certificate cert)
cert
- input certificatepublic String format(X509Certificate[] certChain)
certChain
- input certificatespublic String format(X509Certificate[] certChain, boolean preamble)
certChain
- input certificatespreamble
- whether to print a first line with an information on
the number of elements.Copyright © 2012-2017 European Middleware Initiative. All Rights Reserved.