Record Class PKCertificateData
java.lang.Object
java.lang.Record
br.ufsc.labsec.validationDataServices.services.constraints.data.PKCertificateData
- All Implemented Interfaces:
CertificateData<X509Certificate>
public record PKCertificateData(X509Certificate certificate, X509Certificate issuer, CertPathData context)
extends Record
implements CertificateData<X509Certificate>
-
Constructor Summary
ConstructorsConstructorDescriptionPKCertificateData(X509Certificate certificate, X509Certificate issuer, CertPathData context) Creates an instance of aPKCertificateDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecertificaterecord component.context()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisCA()issuer()Returns the value of theissuerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PKCertificateData
Creates an instance of aPKCertificateDatarecord class.- Parameters:
certificate- the value for thecertificaterecord componentissuer- the value for theissuerrecord componentcontext- the value for thecontextrecord component
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceCertificateData<X509Certificate>
-
isCA
public boolean isCA()- Specified by:
isCAin interfaceCertificateData<X509Certificate>
-
getNotBefore
- Specified by:
getNotBeforein interfaceCertificateData<X509Certificate>
-
getNotAfter
- Specified by:
getNotAfterin interfaceCertificateData<X509Certificate>
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
certificate
Returns the value of thecertificaterecord component.- Specified by:
certificatein interfaceCertificateData<X509Certificate>- Returns:
- the value of the
certificaterecord component
-
issuer
Returns the value of theissuerrecord component.- Specified by:
issuerin interfaceCertificateData<X509Certificate>- Returns:
- the value of the
issuerrecord component
-
context
Returns the value of thecontextrecord component.- Specified by:
contextin interfaceCertificateData<X509Certificate>- Returns:
- the value of the
contextrecord component
-