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
-
Constructor Summary
ConstructorsConstructorDescriptionJksSslStoreDetails
(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
-
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)
. -
type
-
provider
-
location
-
password
-