Package org.springframework.boot.ssl.jks
Record Class JksSslStoreDetails
java.lang.Object
java.lang.Record
org.springframework.boot.ssl.jks.JksSslStoreDetails
- Record Components:
type- the key store type, for exampleJKSorPKCS11. Anullvalue will useKeyStore.getDefaultType()).provider- the name of the key store providerlocation- the location of the key store file ornullif using aPKCS11hardware storepassword- the password used to unlock the store ornull
public record JksSslStoreDetails(String type, String provider, String location, String password)
extends Record
Details for an individual trust or key store in a
JksSslStoreBundle.- Since:
- 3.1.0
- Author:
- Scott Frederick, Phillip Webb
-
Constructor Summary
ConstructorsConstructorDescriptionJksSslStoreDetails(String type, String provider, String location, String password) Creates an instance of aJksSslStoreDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static JksSslStoreDetailsforLocation(String location) Factory method to create a newJksSslStoreDetailsinstance for the given location.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.password()Returns the value of thepasswordrecord component.provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.withPassword(String password) Return a newJksSslStoreDetailsinstance with a new password.
-
Constructor Details
-
JksSslStoreDetails
Creates an instance of aJksSslStoreDetailsrecord class.
-
-
Method Details
-
withPassword
Return a newJksSslStoreDetailsinstance with a new password.- Parameters:
password- the new password- Returns:
- a new
JksSslStoreDetailsinstance
-
forLocation
Factory method to create a newJksSslStoreDetailsinstance for the given location.- Parameters:
location- the location- Returns:
- a new
JksSslStoreDetailsinstance.
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-