public static class SslConfiguration.KeyStoreConfiguration extends Object
| Constructor and Description |
|---|
KeyStoreConfiguration(org.springframework.core.io.Resource resource,
char[] storePassword,
String storeType)
Create a new
SslConfiguration.KeyStoreConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.core.io.Resource |
getResource() |
char[] |
getStorePassword() |
String |
getStoreType() |
boolean |
isPresent() |
static SslConfiguration.KeyStoreConfiguration |
of(org.springframework.core.io.Resource resource)
Create a new
SslConfiguration.KeyStoreConfiguration given Resource. |
static SslConfiguration.KeyStoreConfiguration |
of(org.springframework.core.io.Resource resource,
char[] storePassword)
Create a new
SslConfiguration.KeyStoreConfiguration given Resource and
storePassword using the default keystore type. |
static SslConfiguration.KeyStoreConfiguration |
of(org.springframework.core.io.Resource resource,
char[] storePassword,
String keyStoreType)
Create a new
SslConfiguration.KeyStoreConfiguration given Resource,
storePassword, and keyStoreType. |
static SslConfiguration.KeyStoreConfiguration |
unconfigured()
Create an unconfigured, empty
SslConfiguration.KeyStoreConfiguration. |
SslConfiguration.KeyStoreConfiguration |
withStoreType(String storeType)
Create a new
SslConfiguration.KeyStoreConfiguration by applying all values from this
object and the given storeType. |
public KeyStoreConfiguration(org.springframework.core.io.Resource resource,
@Nullable
char[] storePassword,
String storeType)
SslConfiguration.KeyStoreConfiguration.public static SslConfiguration.KeyStoreConfiguration of(org.springframework.core.io.Resource resource)
SslConfiguration.KeyStoreConfiguration given Resource.resource - resource referencing the key store, must not be null
.SslConfiguration.KeyStoreConfiguration for resource.public static SslConfiguration.KeyStoreConfiguration of(org.springframework.core.io.Resource resource, @Nullable char[] storePassword)
SslConfiguration.KeyStoreConfiguration given Resource and
storePassword using the default keystore type.resource - resource referencing the key store, must not be null
.storePassword - key store password, may be null.SslConfiguration.KeyStoreConfiguration for resource.public static SslConfiguration.KeyStoreConfiguration of(org.springframework.core.io.Resource resource, @Nullable char[] storePassword, String keyStoreType)
SslConfiguration.KeyStoreConfiguration given Resource,
storePassword, and keyStoreType.resource - resource referencing the key store, must not be null
.storePassword - key store password, may be null.keyStoreType - key store type, must not be null.SslConfiguration.KeyStoreConfiguration for resource.public static SslConfiguration.KeyStoreConfiguration unconfigured()
SslConfiguration.KeyStoreConfiguration.SslConfiguration.KeyStoreConfiguration.public boolean isPresent()
public org.springframework.core.io.Resource getResource()
key store resource or
null if not configured.@Nullable public char[] getStorePassword()
char array if not
set.public String getStoreType()
public SslConfiguration.KeyStoreConfiguration withStoreType(String storeType)
SslConfiguration.KeyStoreConfiguration by applying all values from this
object and the given storeType.storeType - must not be null.SslConfiguration.KeyStoreConfiguration.Copyright © 2016–2024 Pivotal Software, Inc.. All rights reserved.