记录类 JksSslStoreDetails
java.lang.Object
java.lang.Record
org.springframework.boot.ssl.jks.JksSslStoreDetails
- 记录组件:
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
.- 从以下版本开始:
- 3.1.0
- 作者:
- Scott Frederick, Phillip Webb
-
构造器概要
构造器构造器说明JksSslStoreDetails
(String type, String provider, String location, String password) 创建JksSslStoreDetails
记录类的实例。 -
方法概要
修饰符和类型方法说明final boolean
指示某个其他对象是否“等于”此对象。static JksSslStoreDetails
forLocation
(String location) Factory method to create a newJksSslStoreDetails
instance for the given location.final int
hashCode()
返回此对象的哈希代码值。location()
返回location
记录组件的值。password()
返回password
记录组件的值。provider()
返回provider
记录组件的值。final String
toString()
返回此记录类的字符串表示形式。type()
返回type
记录组件的值。withPassword
(String password) Return a newJksSslStoreDetails
instance with a new password.
-
构造器详细资料
-
方法详细资料
-
withPassword
Return a newJksSslStoreDetails
instance with a new password.- 参数:
password
- the new password- 返回:
- a new
JksSslStoreDetails
instance
-
forLocation
Factory method to create a newJksSslStoreDetails
instance for the given location.- 参数:
location
- the location- 返回:
- a new
JksSslStoreDetails
instance.
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录类中的所有组件都使用Objects::equals(Object,Object)
进行比较。 -
type
返回type
记录组件的值。- 返回:
type
记录组件的值
-
provider
返回provider
记录组件的值。- 返回:
provider
记录组件的值
-
location
返回location
记录组件的值。- 返回:
location
记录组件的值
-
password
返回password
记录组件的值。- 返回:
password
记录组件的值
-