Package io.undertow.util
Class Certificates
- java.lang.Object
-
- io.undertow.util.Certificates
-
public class Certificates extends Object
Utility class for dealing with certificates- Author:
- Stuart Douglas
-
-
Field Summary
Fields Modifier and Type Field Description static StringBEGIN_CERTstatic StringEND_CERT
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringtoPem(Certificate certificate)Converts a certificate to PEM format.static StringtoPem(X509Certificate certificate)Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Field Detail
-
BEGIN_CERT
public static final String BEGIN_CERT
- See Also:
- Constant Field Values
-
END_CERT
public static final String END_CERT
- See Also:
- Constant Field Values
-
-
Method Detail
-
toPem
@Deprecated(since="2.3.0", forRemoval=true) public static String toPem(X509Certificate certificate) throws CertificateEncodingException
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
CertificateEncodingException
-
toPem
public static String toPem(Certificate certificate) throws CertificateEncodingException
Converts a certificate to PEM format.- Parameters:
certificate- the Certificate to recode- Returns:
- The Certificate in PEM format.
- Throws:
CertificateEncodingException- thrown if an encoding error occurs.
-
-