Record Class TestPki.Identity
java.lang.Object
java.lang.Record
com.irurueta.authserver.testsupport.TestPki.Identity
- Record Components:
keyStore- PKCS#12 key store with the private key and the certificate chain.password- password of the key store.certificate- the certificate of the identity, with its PEM text and fingerprint.
- Enclosing class:
TestPki
public static record TestPki.Identity(Path keyStore, String password, TestCertificates.GeneratedCertificate certificate)
extends Record
An identity of the infrastructure.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TestCertificates.GeneratedCertificateThe field for thecertificaterecord component.private final PathThe field for thekeyStorerecord component.private final StringThe field for thepasswordrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionIdentity(Path keyStore, String password, TestCertificates.GeneratedCertificate certificate) Creates an instance of aIdentityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.keyStore()Returns the value of thekeyStorerecord component.password()Returns the value of thepasswordrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
keyStore
The field for thekeyStorerecord component. -
password
The field for thepasswordrecord component. -
certificate
The field for thecertificaterecord component.
-
-
Constructor Details
-
Identity
Creates an instance of aIdentityrecord class.- Parameters:
keyStore- the value for thekeyStorerecord componentpassword- the value for thepasswordrecord 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). -
keyStore
Returns the value of thekeyStorerecord component.- Returns:
- the value of the
keyStorerecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
certificate
Returns the value of thecertificaterecord component.- Returns:
- the value of the
certificaterecord component
-