mirror of https://github.com/grpc/grpc-java.git
core: clarify security methods on channel and server
This commit is contained in:
parent
cbad906c0e
commit
3a5f115dbc
|
|
@ -152,6 +152,8 @@ public abstract class ManagedChannelBuilder<T extends ManagedChannelBuilder<T>>
|
||||||
*
|
*
|
||||||
* @param skipNegotiation @{code true} if there is a priori knowledge that the endpoint supports
|
* @param skipNegotiation @{code true} if there is a priori knowledge that the endpoint supports
|
||||||
* plaintext, {@code false} if plaintext use must be negotiated.
|
* plaintext, {@code false} if plaintext use must be negotiated.
|
||||||
|
*
|
||||||
|
* @throws UnsupportedOperationException if plaintext mode is not supported.
|
||||||
* @return this
|
* @return this
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -145,6 +145,7 @@ public abstract class ServerBuilder<T extends ServerBuilder<T>> {
|
||||||
* @param privateKey file containing the private key
|
* @param privateKey file containing the private key
|
||||||
*
|
*
|
||||||
* @return this
|
* @return this
|
||||||
|
* @throws UnsupportedOperationException if the server does not support TLS.
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public abstract T useTransportSecurity(File certChain, File privateKey);
|
public abstract T useTransportSecurity(File certChain, File privateKey);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue