Module org.elasticsearch.security
Record Class CrossClusterApiKeySignatureManager.X509KeyPair
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.security.transport.CrossClusterApiKeySignatureManager.X509KeyPair
- Enclosing class:
CrossClusterApiKeySignatureManager
public static record CrossClusterApiKeySignatureManager.X509KeyPair(X509Certificate[] certificates, PrivateKey privateKey, String signatureAlgorithm, String fingerprint)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionX509KeyPair(X509Certificate[] certificates, PrivateKey privateKey, String signatureAlgorithm, String fingerprint) Creates an instance of aX509KeyPairrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecertificatesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefingerprintrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theprivateKeyrecord component.Returns the value of thesignatureAlgorithmrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
X509KeyPair
public X509KeyPair(X509Certificate[] certificates, PrivateKey privateKey, String signatureAlgorithm, String fingerprint) Creates an instance of aX509KeyPairrecord class.- Parameters:
certificates- the value for thecertificatesrecord componentprivateKey- the value for theprivateKeyrecord componentsignatureAlgorithm- the value for thesignatureAlgorithmrecord componentfingerprint- the value for thefingerprintrecord 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). -
certificates
Returns the value of thecertificatesrecord component.- Returns:
- the value of the
certificatesrecord component
-
privateKey
Returns the value of theprivateKeyrecord component.- Returns:
- the value of the
privateKeyrecord component
-
signatureAlgorithm
Returns the value of thesignatureAlgorithmrecord component.- Returns:
- the value of the
signatureAlgorithmrecord component
-
fingerprint
Returns the value of thefingerprintrecord component.- Returns:
- the value of the
fingerprintrecord component
-