Modifier and Type | Class and Description |
---|---|
class |
ChoiceServerCredentials
Provides a list of
ServerCredentials , where any one may be used. |
class |
InsecureServerCredentials
No server identity or encryption is to be used.
|
class |
TlsServerCredentials
TLS credentials, providing server identity and encryption.
|
Modifier and Type | Method and Description |
---|---|
ServerCredentials |
TlsServerCredentials.Builder.build()
Construct the credentials.
|
static ServerCredentials |
InsecureServerCredentials.create() |
static ServerCredentials |
TlsServerCredentials.create(File certChain,
File privateKey)
Creates an instance using provided certificate chain and private key.
|
static ServerCredentials |
TlsServerCredentials.create(InputStream certChain,
InputStream privateKey)
Creates an instance using provided certificate chain and private key.
|
static ServerCredentials |
ChoiceServerCredentials.create(ServerCredentials... creds)
Constructs with the provided
creds as options, with preferred credentials first. |
Modifier and Type | Method and Description |
---|---|
List<ServerCredentials> |
ChoiceServerCredentials.getCredentialsList()
Non-empty list of credentials, in preference order.
|
Modifier and Type | Method and Description |
---|---|
static ServerCredentials |
ChoiceServerCredentials.create(ServerCredentials... creds)
Constructs with the provided
creds as options, with preferred credentials first. |
protected ServerProvider.NewServerBuilderResult |
ServerProvider.newServerBuilderForPort(int port,
ServerCredentials creds)
Creates a new builder with the given port and credentials.
|
static ServerBuilder<?> |
Grpc.newServerBuilderForPort(int port,
ServerCredentials creds)
Static factory for creating a new ServerBuilder.
|