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.v1beta1.MasterAuth
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER
public static final int CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CLIENT_CERTIFICATE_FIELD_NUMBER
public static final int CLIENT_CERTIFICATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CLIENT_KEY_FIELD_NUMBER
public static final int CLIENT_KEY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CLUSTER_CA_CERTIFICATE_FIELD_NUMBER
public static final int CLUSTER_CA_CERTIFICATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PASSWORD_FIELD_NUMBER
public static final int PASSWORD_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
USERNAME_FIELD_NUMBER
public static final int USERNAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static MasterAuth getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static MasterAuth.Builder newBuilder()
newBuilder(MasterAuth prototype)
public static MasterAuth.Builder newBuilder(MasterAuth prototype)
public static MasterAuth parseDelimitedFrom(InputStream input)
public static MasterAuth parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static MasterAuth parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MasterAuth parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static MasterAuth parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MasterAuth parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MasterAuth parseFrom(CodedInputStream input)
public static MasterAuth parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MasterAuth parseFrom(InputStream input)
public static MasterAuth parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static MasterAuth parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MasterAuth parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<MasterAuth> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
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.v1beta1.ClientCertificateConfig client_certificate_config = 3;
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.v1beta1.ClientCertificateConfig client_certificate_config = 3;
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 |
Type |
Description |
ByteString |
The bytes for clientKey.
|
getClusterCaCertificate()
public String getClusterCaCertificate()
string cluster_ca_certificate = 100;
Returns |
Type |
Description |
String |
The clusterCaCertificate.
|
getClusterCaCertificateBytes()
public ByteString getClusterCaCertificateBytes()
string cluster_ca_certificate = 100;
Returns |
Type |
Description |
ByteString |
The bytes for clusterCaCertificate.
|
getDefaultInstanceForType()
public MasterAuth getDefaultInstanceForType()
getParserForType()
public Parser<MasterAuth> getParserForType()
Overrides
getPassword() (deprecated)
public String getPassword()
Deprecated. google.container.v1beta1.MasterAuth.password is deprecated. See
google/container/v1beta1/cluster_service.proto;l=1362
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.v1beta1.MasterAuth.password is deprecated. See
google/container/v1beta1/cluster_service.proto;l=1362
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 |
ByteString |
The bytes for password.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getUsername() (deprecated)
public String getUsername()
Deprecated. google.container.v1beta1.MasterAuth.username is deprecated. See
google/container/v1beta1/cluster_service.proto;l=1351
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.v1beta1.MasterAuth.username is deprecated. See
google/container/v1beta1/cluster_service.proto;l=1351
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 |
ByteString |
The bytes for username.
|
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.v1beta1.ClientCertificateConfig client_certificate_config = 3;
Returns |
Type |
Description |
boolean |
Whether the clientCertificateConfig field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public MasterAuth.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MasterAuth.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public MasterAuth.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides