public final class UtilsCertificate
extends java.lang.Object
Class that provides methods for managing certificates and private keys.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
canonicalizeX500Principal(java.lang.String x500PrincipalName)
Method that canonicalizes a X.500 Principal of a certificate.
|
static boolean |
equals(java.security.cert.X509Certificate cert1,
java.security.cert.X509Certificate cert2)
Method that indicates whether some other certificate is "equal to" this one (true) or not (false).
|
static java.security.cert.X509Certificate |
generateCertificate(byte[] certificateBytes)
Method that obtains a certificate from the bytes array.
|
public static java.lang.String canonicalizeX500Principal(java.lang.String x500PrincipalName)
x500PrincipalName - Parameter that represents the value of the X.500 Principal of the certificate to canonicalize.public static java.security.cert.X509Certificate generateCertificate(byte[] certificateBytes)
throws java.security.cert.CertificateException
certificateBytes - Parameter that represents the certificate.java.security.cert.CertificateException - If there is a parsing error.public static boolean equals(java.security.cert.X509Certificate cert1,
java.security.cert.X509Certificate cert2)
cert1 - Parameter that represents the first certificate to compare.cert2 - Parameter that represents the second certificate to compare.