Class X509CertificateDetails
java.lang.Object
de.xima.fc.certificate.mgmt.cert.X509CertificateDetails
- All Implemented Interfaces:
Serializable
Represents information about an X.509 certificate. This class encapsulates details such as the subject name, the
fingerprint, and the usage information of the certificate.
- Since:
- 8.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionX509CertificateDetails(boolean isSelfSigned, X501DistinguishedName subject, X501DistinguishedName issuer, List<X509CertificateSANEntry> sanEntries, String fingerprint, X509CertificateUsageInfo usageInfo, String keyAlgorithm, int keySize, Instant notBefore, Instant notAfter) Creates a newX509CertificateDetailsinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe SHA-256 fingerprint of the X.509 certificate associated with this entry.The issuer name of the X.509 certificate associated with this entry in the form of a distinguished name (e.g., "CN=Certificate Authority, O=XIMA").The algorithm used to generate the key associated with the X.509 certificate.intThe size of the key associated with the X.509 certificate.Optional, indicates when the certificate expires.Optional, indicates when the certificate expires.The SAN entries of the X.509 certificate.The subject name of the X.509 certificate associated with this entry in the form of a distinguished name (e.g., "CN=John Doe, OU=IT, O=XIMA").Information about the usage of the X.509 certificate associated with this entry.inthashCode()booleanIndicates whether the X.509 certificate is self-signed.toString()
-
Constructor Details
-
X509CertificateDetails
public X509CertificateDetails(boolean isSelfSigned, X501DistinguishedName subject, X501DistinguishedName issuer, List<X509CertificateSANEntry> sanEntries, String fingerprint, X509CertificateUsageInfo usageInfo, String keyAlgorithm, int keySize, Instant notBefore, Instant notAfter) Creates a newX509CertificateDetailsinstance.- Parameters:
isSelfSigned- Indicates whether the X.509 certificate is self-signed. A self-signed certificate is one that is signed by the same entity that it certifies, rather than by a trusted certificate authority (CA).subject- The subject name of the X.509 certificate associated with this entry in the form of a distinguished name (e.g., "CN=John Doe, OU=IT, O=XIMA"). This is used to identify the entity to which the certificate belongs.issuer- The issuer name of the X.509 certificate associated with this entry in the form of a distinguished name (e.g., "CN=Certificate Authority, O=XIMA"). This is used to identify the entity that issued the certificate.sanEntries- The SAN entries of the X.509 certificate.fingerprint- The SHA-256 fingerprint of the X.509 certificate associated with this entry. This is a unique identifier for the certificate and is used to detect duplicates. The fingerprint is represented as a hexadecimal string.usageInfo- Information about the usage of the X.509 certificate associated with this entry. This includes details such as the intended purpose of the certificate.keyAlgorithm- The algorithm used to generate the key associated with the X.509 certificate. This is typically a string that indicates the cryptographic algorithm (e.g., "RSA", "DSA", "ECDSA") used for the key pair.keySize- The size of the key associated with the X.509 certificate. This is typically represented in bits (e.g., 2048, 4096) and indicates the strength of the key.notBefore- Optional, indicates when the certificate expires. If set, the certificate is considered invalid if notBefore > current time.notAfter- Optional, indicates when the certificate expires. If set, the certificate is considered invalid if notAfter < current time.
-
-
Method Details
-
isSelfSigned
public boolean isSelfSigned()Indicates whether the X.509 certificate is self-signed. A self-signed certificate is one that is signed by the same entity that it certifies, rather than by a trusted certificate authority (CA). -
getSubject
The subject name of the X.509 certificate associated with this entry in the form of a distinguished name (e.g., "CN=John Doe, OU=IT, O=XIMA"). This is used to identify the entity to which the certificate belongs. -
getIssuer
The issuer name of the X.509 certificate associated with this entry in the form of a distinguished name (e.g., "CN=Certificate Authority, O=XIMA"). This is used to identify the entity that issued the certificate. -
getSanEntries
The SAN entries of the X.509 certificate. -
getFingerprint
The SHA-256 fingerprint of the X.509 certificate associated with this entry. This is a unique identifier for the certificate and is used to detect duplicates. The fingerprint is represented as a hexadecimal string. -
getUsageInfo
Information about the usage of the X.509 certificate associated with this entry. This includes details such as the intended purpose of the certificate. -
getKeyAlgorithm
The algorithm used to generate the key associated with the X.509 certificate. This is typically a string that indicates the cryptographic algorithm (e.g., "RSA", "DSA", "ECDSA") used for the key pair. -
getKeySize
public int getKeySize()The size of the key associated with the X.509 certificate. This is typically represented in bits (e.g., 2048, 4096) and indicates the strength of the key. -
getNotBefore
Optional, indicates when the certificate expires. If set, the certificate is considered invalid if notBefore > current time. -
getNotAfter
Optional, indicates when the certificate expires. If set, the certificate is considered invalid if notAfter < current time. -
equals
-
canEqual
-
hashCode
-
toString
-