Record Class ClientCert
java.lang.Object
java.lang.Record
org.graylog.security.certutil.csr.ClientCert
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecaCertificaterecord component.Returns the value of thecertificaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprincipalrecord component.Returns the value of theprivateKeyrecord component.role()Returns the value of therolerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClientCert
public ClientCert(String principal, String role, String caCertificate, String privateKey, String certificate) Creates an instance of aClientCertrecord class.- Parameters:
principal- the value for theprincipalrecord componentrole- the value for therolerecord componentcaCertificate- the value for thecaCertificaterecord componentprivateKey- the value for theprivateKeyrecord componentcertificate- the value for thecertificaterecord 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). -
principal
Returns the value of theprincipalrecord component.- Returns:
- the value of the
principalrecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
caCertificate
Returns the value of thecaCertificaterecord component.- Returns:
- the value of the
caCertificaterecord component
-
privateKey
Returns the value of theprivateKeyrecord component.- Returns:
- the value of the
privateKeyrecord component
-
certificate
Returns the value of thecertificaterecord component.- Returns:
- the value of the
certificaterecord component
-