@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/7621") public static final class TlsServerCredentials.Builder extends Object
TlsServerCredentials
.Modifier and Type | Method and Description |
---|---|
ServerCredentials |
build()
Construct the credentials.
|
TlsServerCredentials.Builder |
keyManager(File certChain,
File privateKey)
Creates an instance using provided certificate chain and private key.
|
TlsServerCredentials.Builder |
keyManager(File certChain,
File privateKey,
String privateKeyPassword)
Creates an instance using provided certificate chain and possibly-encrypted private key.
|
TlsServerCredentials.Builder |
keyManager(InputStream certChain,
InputStream privateKey)
Creates an instance using provided certificate chain and private key.
|
TlsServerCredentials.Builder |
keyManager(InputStream certChain,
InputStream privateKey,
String privateKeyPassword)
Creates an instance using provided certificate chain and possibly-encrypted private key.
|
TlsServerCredentials.Builder |
requireFakeFeature()
Requires
TlsServerCredentials.Feature.FAKE to be understood. |
public TlsServerCredentials.Builder requireFakeFeature()
TlsServerCredentials.Feature.FAKE
to be understood. For use in testing consumers of this
credential.public TlsServerCredentials.Builder keyManager(File certChain, File privateKey) throws IOException
IOException
public TlsServerCredentials.Builder keyManager(File certChain, File privateKey, String privateKeyPassword) throws IOException
null
.IOException
public TlsServerCredentials.Builder keyManager(InputStream certChain, InputStream privateKey) throws IOException
IOException
public TlsServerCredentials.Builder keyManager(InputStream certChain, InputStream privateKey, String privateKeyPassword) throws IOException
null
.IOException
public ServerCredentials build()