Record Class FilesystemKeystoreInformation
java.lang.Object
java.lang.Record
org.graylog.security.certutil.csr.FilesystemKeystoreInformation
- All Implemented Interfaces:
KeystoreInformation
public record FilesystemKeystoreInformation(Path location, char[] password)
extends Record
implements KeystoreInformation
-
Constructor Summary
ConstructorsConstructorDescriptionFilesystemKeystoreInformation(Path location, char[] password) Creates an instance of aFilesystemKeystoreInformationrecord class.FilesystemKeystoreInformation(Path location, String password) -
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.location()Returns the value of thelocationrecord component.char[]password()Returns the value of thepasswordrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.graylog.security.certutil.csr.KeystoreInformation
passwordAsString
-
Constructor Details
-
FilesystemKeystoreInformation
-
FilesystemKeystoreInformation
Creates an instance of aFilesystemKeystoreInformationrecord class.- Parameters:
location- the value for thelocationrecord componentpassword- the value for thepasswordrecord component
-
-
Method Details
-
loadKeystore
public KeyStore loadKeystore() throws KeyStoreException, IOException, CertificateException, NoSuchAlgorithmException- Specified by:
loadKeystorein interfaceKeystoreInformation- Throws:
KeyStoreExceptionIOExceptionCertificateExceptionNoSuchAlgorithmException
-
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). -
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
password
public char[] password()Returns the value of thepasswordrecord component.- Specified by:
passwordin interfaceKeystoreInformation- Returns:
- the value of the
passwordrecord component
-