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