public static class SslConfiguration.KeyStoreConfiguration extends Object
Constructor and Description |
---|
KeyStoreConfiguration(Resource resource,
char[] storePassword,
String storeType)
Create a new
SslConfiguration.KeyStoreConfiguration . |
public KeyStoreConfiguration(Resource resource, @Nullable char[] storePassword, String storeType)
SslConfiguration.KeyStoreConfiguration
.public static SslConfiguration.KeyStoreConfiguration of(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(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(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 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–2022 Pivotal Software, Inc.. All rights reserved.