public final class MasterAuth extends GeneratedMessageV3 implements MasterAuthOrBuilder
The authentication information for accessing the master endpoint.
Authentication can be done using HTTP basic auth or using client
certificates.
Protobuf type google.container.v1.MasterAuth
Static Fields
CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER
public static final int CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER
Field Value
CLIENT_CERTIFICATE_FIELD_NUMBER
public static final int CLIENT_CERTIFICATE_FIELD_NUMBER
Field Value
CLIENT_KEY_FIELD_NUMBER
public static final int CLIENT_KEY_FIELD_NUMBER
Field Value
CLUSTER_CA_CERTIFICATE_FIELD_NUMBER
public static final int CLUSTER_CA_CERTIFICATE_FIELD_NUMBER
Field Value
PASSWORD_FIELD_NUMBER
public static final int PASSWORD_FIELD_NUMBER
Field Value
USERNAME_FIELD_NUMBER
public static final int USERNAME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static MasterAuth getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static MasterAuth.Builder newBuilder()
Returns
newBuilder(MasterAuth prototype)
public static MasterAuth.Builder newBuilder(MasterAuth prototype)
Parameter
Returns
public static MasterAuth parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static MasterAuth parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static MasterAuth parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MasterAuth parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static MasterAuth parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MasterAuth parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MasterAuth parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static MasterAuth parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MasterAuth parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static MasterAuth parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static MasterAuth parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MasterAuth parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<MasterAuth> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getClientCertificate()
public String getClientCertificate()
[Output only] Base64-encoded public certificate used by clients to
authenticate to the cluster endpoint.
string client_certificate = 101;
Returns
Type | Description |
String | The clientCertificate.
|
getClientCertificateBytes()
public ByteString getClientCertificateBytes()
[Output only] Base64-encoded public certificate used by clients to
authenticate to the cluster endpoint.
string client_certificate = 101;
Returns
Type | Description |
ByteString | The bytes for clientCertificate.
|
getClientCertificateConfig()
public ClientCertificateConfig getClientCertificateConfig()
Configuration for client certificate authentication on the cluster. For
clusters before v1.12, if no configuration is specified, a client
certificate is issued.
.google.container.v1.ClientCertificateConfig client_certificate_config = 3;
Returns
getClientCertificateConfigOrBuilder()
public ClientCertificateConfigOrBuilder getClientCertificateConfigOrBuilder()
Configuration for client certificate authentication on the cluster. For
clusters before v1.12, if no configuration is specified, a client
certificate is issued.
.google.container.v1.ClientCertificateConfig client_certificate_config = 3;
Returns
getClientKey()
public String getClientKey()
[Output only] Base64-encoded private key used by clients to authenticate
to the cluster endpoint.
string client_key = 102;
Returns
Type | Description |
String | The clientKey.
|
getClientKeyBytes()
public ByteString getClientKeyBytes()
[Output only] Base64-encoded private key used by clients to authenticate
to the cluster endpoint.
string client_key = 102;
Returns
getClusterCaCertificate()
public String getClusterCaCertificate()
[Output only] Base64-encoded public certificate that is the root of
trust for the cluster.
string cluster_ca_certificate = 100;
Returns
Type | Description |
String | The clusterCaCertificate.
|
getClusterCaCertificateBytes()
public ByteString getClusterCaCertificateBytes()
[Output only] Base64-encoded public certificate that is the root of
trust for the cluster.
string cluster_ca_certificate = 100;
Returns
Type | Description |
ByteString | The bytes for clusterCaCertificate.
|
getDefaultInstanceForType()
public MasterAuth getDefaultInstanceForType()
Returns
getParserForType()
public Parser<MasterAuth> getParserForType()
Returns
Overrides
getPassword() (deprecated)
public String getPassword()
Deprecated. google.container.v1.MasterAuth.password is deprecated. See
google/container/v1/cluster_service.proto;l=1049
The password to use for HTTP basic authentication to the master endpoint.
Because the master endpoint is open to the Internet, you should create a
strong password. If a password is provided for cluster creation, username
must be non-empty.
Warning: basic authentication is deprecated, and will be removed in GKE
control plane versions 1.19 and newer. For a list of recommended
authentication methods, see:
https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
string password = 2 [deprecated = true];
Returns
Type | Description |
String | The password.
|
getPasswordBytes() (deprecated)
public ByteString getPasswordBytes()
Deprecated. google.container.v1.MasterAuth.password is deprecated. See
google/container/v1/cluster_service.proto;l=1049
The password to use for HTTP basic authentication to the master endpoint.
Because the master endpoint is open to the Internet, you should create a
strong password. If a password is provided for cluster creation, username
must be non-empty.
Warning: basic authentication is deprecated, and will be removed in GKE
control plane versions 1.19 and newer. For a list of recommended
authentication methods, see:
https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
string password = 2 [deprecated = true];
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUsername() (deprecated)
public String getUsername()
Deprecated. google.container.v1.MasterAuth.username is deprecated. See
google/container/v1/cluster_service.proto;l=1038
The username to use for HTTP basic authentication to the master endpoint.
For clusters v1.6.0 and later, basic authentication can be disabled by
leaving username unspecified (or setting it to the empty string).
Warning: basic authentication is deprecated, and will be removed in GKE
control plane versions 1.19 and newer. For a list of recommended
authentication methods, see:
https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
string username = 1 [deprecated = true];
Returns
Type | Description |
String | The username.
|
getUsernameBytes() (deprecated)
public ByteString getUsernameBytes()
Deprecated. google.container.v1.MasterAuth.username is deprecated. See
google/container/v1/cluster_service.proto;l=1038
The username to use for HTTP basic authentication to the master endpoint.
For clusters v1.6.0 and later, basic authentication can be disabled by
leaving username unspecified (or setting it to the empty string).
Warning: basic authentication is deprecated, and will be removed in GKE
control plane versions 1.19 and newer. For a list of recommended
authentication methods, see:
https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
string username = 1 [deprecated = true];
Returns
hasClientCertificateConfig()
public boolean hasClientCertificateConfig()
Configuration for client certificate authentication on the cluster. For
clusters before v1.12, if no configuration is specified, a client
certificate is issued.
.google.container.v1.ClientCertificateConfig client_certificate_config = 3;
Returns
Type | Description |
boolean | Whether the clientCertificateConfig field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public MasterAuth.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MasterAuth.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public MasterAuth.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions