Record Class CertificateManager.CertificateInfo
java.lang.Object
java.lang.Record
ecmwf.common.security.CertificateManager.CertificateInfo
- Enclosing class:
CertificateManager
public static record CertificateManager.CertificateInfo(String subject, String issuer, String serialNumber, Date notBefore, Date notAfter, String fingerprintSha256, String keyAlgorithm, int keySize, boolean selfSigned, boolean expired, boolean expiringSoon)
extends Record
Immutable snapshot of the metadata fields of an X.509 certificate that are displayed in the administration UI.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanexpired()Returns the value of theexpiredrecord component.booleanReturns the value of theexpiringSoonrecord component.Returns the value of thefingerprintSha256record component.final inthashCode()Returns a hash code value for this object.issuer()Returns the value of theissuerrecord component.Returns the value of thekeyAlgorithmrecord component.intkeySize()Returns the value of thekeySizerecord component.notAfter()Returns the value of thenotAfterrecord component.Returns the value of thenotBeforerecord component.booleanReturns the value of theselfSignedrecord component.Returns the value of theserialNumberrecord component.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CertificateInfo
public CertificateInfo(String subject, String issuer, String serialNumber, Date notBefore, Date notAfter, String fingerprintSha256, String keyAlgorithm, int keySize, boolean selfSigned, boolean expired, boolean expiringSoon) Creates an instance of aCertificateInforecord class.- Parameters:
subject- the value for thesubjectrecord componentissuer- the value for theissuerrecord componentserialNumber- the value for theserialNumberrecord componentnotBefore- the value for thenotBeforerecord componentnotAfter- the value for thenotAfterrecord componentfingerprintSha256- the value for thefingerprintSha256record componentkeyAlgorithm- the value for thekeyAlgorithmrecord componentkeySize- the value for thekeySizerecord componentselfSigned- the value for theselfSignedrecord componentexpired- the value for theexpiredrecord componentexpiringSoon- the value for theexpiringSoonrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
issuer
Returns the value of theissuerrecord component.- Returns:
- the value of the
issuerrecord component
-
serialNumber
Returns the value of theserialNumberrecord component.- Returns:
- the value of the
serialNumberrecord component
-
notBefore
Returns the value of thenotBeforerecord component.- Returns:
- the value of the
notBeforerecord component
-
notAfter
Returns the value of thenotAfterrecord component.- Returns:
- the value of the
notAfterrecord component
-
fingerprintSha256
Returns the value of thefingerprintSha256record component.- Returns:
- the value of the
fingerprintSha256record component
-
keyAlgorithm
Returns the value of thekeyAlgorithmrecord component.- Returns:
- the value of the
keyAlgorithmrecord component
-
keySize
public int keySize()Returns the value of thekeySizerecord component.- Returns:
- the value of the
keySizerecord component
-
selfSigned
public boolean selfSigned()Returns the value of theselfSignedrecord component.- Returns:
- the value of the
selfSignedrecord component
-
expired
public boolean expired()Returns the value of theexpiredrecord component.- Returns:
- the value of the
expiredrecord component
-
expiringSoon
public boolean expiringSoon()Returns the value of theexpiringSoonrecord component.- Returns:
- the value of the
expiringSoonrecord component
-