public class CertificateUtils
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.String |
buildCertificateFileName(@NotNull java.lang.String certName) |
Concatenate the certificate name with the standard extension.
|
static byte[] |
prepareCertificateData(@NotNull java.lang.String encodedData) |
Prepare the certificate encoded data to be written to a file, adding its requirements and converting to UTF-8.
|
static void |
writeCertificateData(@NotNull java.io.File certFolder,
@NotNull java.lang.String certName,
@NotNull java.lang.String certEncodedData) |
Write the certificate data to the folder specified, naming by the name specified.
|
public static byte[] prepareCertificateData(@NotNull
@NotNull java.lang.String encodedData)
encodedData - the raw encoded data of the certificatepublic static java.lang.String buildCertificateFileName(@NotNull
@NotNull java.lang.String certName)
certName - name of the certificatepublic static void writeCertificateData(@NotNull
@NotNull java.io.File certFolder,
@NotNull
@NotNull java.lang.String certName,
@NotNull
@NotNull java.lang.String certEncodedData)
certFolder - folder to be written intocertName - name of the certificate which will be the certificate file namecertEncodedData - encoded data of the certificate