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 exampleJKS
orPKCS11
. Anull
value will useKeyStore.getDefaultType()
).provider
- the name of the key store providerlocation
- the location of the key store file ornull
if using aPKCS11
hardware 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
ConstructorDescriptionJksSslStoreDetails
(String type, String provider, String location, String password) Creates an instance of aJksSslStoreDetails
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.static JksSslStoreDetails
forLocation
(String location) Factory method to create a newJksSslStoreDetails
instance for the given location.final int
hashCode()
Returns a hash code value for this object.location()
Returns the value of thelocation
record component.password()
Returns the value of thepassword
record component.provider()
Returns the value of theprovider
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.withPassword
(String password) Return a newJksSslStoreDetails
instance with a new password.
-
Constructor Details
-
JksSslStoreDetails
Creates an instance of aJksSslStoreDetails
record class.
-
-
Method Details
-
withPassword
Return a newJksSslStoreDetails
instance with a new password.- Parameters:
password
- the new password- Returns:
- a new
JksSslStoreDetails
instance
-
forLocation
Factory method to create a newJksSslStoreDetails
instance for the given location.- Parameters:
location
- the location- Returns:
- a new
JksSslStoreDetails
instance.
-
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 thetype
record component.- Returns:
- the value of the
type
record component
-
provider
Returns the value of theprovider
record component.- Returns:
- the value of the
provider
record component
-
location
Returns the value of thelocation
record component.- Returns:
- the value of the
location
record component
-
password
Returns the value of thepassword
record component.- Returns:
- the value of the
password
record component
-