Package org.graylog.security.certutil
Record Class KeyStoreDto
java.lang.Object
java.lang.Record
org.graylog.security.certutil.KeyStoreDto
-
Constructor Summary
ConstructorsConstructorDescriptionKeyStoreDto(Map<String, List<CertificateDto>> certificates) Creates an instance of aKeyStoreDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecertificatesrecord component.static KeyStoreDtoempty()final booleanIndicates whether some other object is "equal to" this one.static KeyStoreDtofromCertificates(String prefix, Certificate[] certificates) static KeyStoreDtofromKeyStore(KeyStore keystore) static KeyStoreDtofromSingleCertificate(String alias, X509Certificate certificate) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeyStoreDto
Creates an instance of aKeyStoreDtorecord class.- Parameters:
certificates- the value for thecertificatesrecord component
-
-
Method Details
-
empty
-
fromKeyStore
- Throws:
KeyStoreException
-
fromCertificates
-
fromSingleCertificate
-
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
-