Package org.graylog.security.certutil
Record Class CertificateDto
java.lang.Object
java.lang.Record
org.graylog.security.certutil.CertificateDto
-
Constructor Summary
ConstructorsConstructorDescriptionCertificateDto(String subject, String issuer, BigInteger serialNumber, Date validFrom, Date validTo, List<String> subjectAlternativeNames) Creates an instance of aCertificateDtorecord class.CertificateDto(X509Certificate certificate) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.issuer()Returns the value of theissuerrecord component.Returns the value of theserialNumberrecord component.subject()Returns the value of thesubjectrecord component.Returns the value of thesubjectAlternativeNamesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidFromrecord component.validTo()Returns the value of thevalidTorecord component.
-
Constructor Details
-
CertificateDto
-
CertificateDto
public CertificateDto(String subject, String issuer, BigInteger serialNumber, Date validFrom, Date validTo, List<String> subjectAlternativeNames) Creates an instance of aCertificateDtorecord class.- Parameters:
subject- the value for thesubjectrecord componentissuer- the value for theissuerrecord componentserialNumber- the value for theserialNumberrecord componentvalidFrom- the value for thevalidFromrecord componentvalidTo- the value for thevalidTorecord componentsubjectAlternativeNames- the value for thesubjectAlternativeNamesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
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
-
validFrom
Returns the value of thevalidFromrecord component.- Returns:
- the value of the
validFromrecord component
-
validTo
Returns the value of thevalidTorecord component.- Returns:
- the value of the
validTorecord component
-
subjectAlternativeNames
Returns the value of thesubjectAlternativeNamesrecord component.- Returns:
- the value of the
subjectAlternativeNamesrecord component
-