Record Class KeyAndTrustStoreProperties
java.lang.Object
java.lang.Record
com.thanlinardos.spring_enterprise_library.https.properties.KeyAndTrustStoreProperties
-
Constructor Summary
ConstructorsConstructorDescriptionKeyAndTrustStoreProperties(org.springframework.core.io.Resource path, String password) Creates an instance of aKeyAndTrustStorePropertiesrecord class. -
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.booleanChecks if both the path and password are set (not null).password()Returns the value of thepasswordrecord component.org.springframework.core.io.Resourcepath()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeyAndTrustStoreProperties
-
-
Method Details
-
isEnabled
public boolean isEnabled()Checks if both the path and password are set (not null).- Returns:
- true if both path and password are set, false otherwise.
-
toString
-
hashCode
-
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). -
path
-
password
-