Class AttachedOidcConfig (0.40.0)

public final class AttachedOidcConfig extends GeneratedMessageV3 implements AttachedOidcConfigOrBuilder

OIDC discovery information of the target cluster.

Kubernetes Service Account (KSA) tokens are JWT tokens signed by the cluster API server. This fields indicates how Google Cloud Platform services validate KSA tokens in order to allow system workloads (such as GKE Connect and telemetry agents) to authenticate back to Google Cloud Platform.

Both clusters with public and private issuer URLs are supported. Clusters with public issuers only need to specify the issuer_url field while clusters with private issuers need to provide both issuer_url and oidc_jwks.

Protobuf type google.cloud.gkemulticloud.v1.AttachedOidcConfig

Static Fields

ISSUER_URL_FIELD_NUMBER

public static final int ISSUER_URL_FIELD_NUMBER
Field Value
TypeDescription
int

JWKS_FIELD_NUMBER

public static final int JWKS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AttachedOidcConfig getDefaultInstance()
Returns
TypeDescription
AttachedOidcConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AttachedOidcConfig.Builder newBuilder()
Returns
TypeDescription
AttachedOidcConfig.Builder

newBuilder(AttachedOidcConfig prototype)

public static AttachedOidcConfig.Builder newBuilder(AttachedOidcConfig prototype)
Parameter
NameDescription
prototypeAttachedOidcConfig
Returns
TypeDescription
AttachedOidcConfig.Builder

parseDelimitedFrom(InputStream input)

public static AttachedOidcConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AttachedOidcConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AttachedOidcConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachedOidcConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AttachedOidcConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AttachedOidcConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AttachedOidcConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachedOidcConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AttachedOidcConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AttachedOidcConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AttachedOidcConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachedOidcConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AttachedOidcConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AttachedOidcConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AttachedOidcConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachedOidcConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AttachedOidcConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AttachedOidcConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AttachedOidcConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachedOidcConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AttachedOidcConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AttachedOidcConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AttachedOidcConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachedOidcConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AttachedOidcConfig> parser()
Returns
TypeDescription
Parser<AttachedOidcConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public AttachedOidcConfig getDefaultInstanceForType()
Returns
TypeDescription
AttachedOidcConfig

getIssuerUrl()

public String getIssuerUrl()

A JSON Web Token (JWT) issuer URI. issuer must start with https://.

string issuer_url = 1;

Returns
TypeDescription
String

The issuerUrl.

getIssuerUrlBytes()

public ByteString getIssuerUrlBytes()

A JSON Web Token (JWT) issuer URI. issuer must start with https://.

string issuer_url = 1;

Returns
TypeDescription
ByteString

The bytes for issuerUrl.

getJwks()

public ByteString getJwks()

Optional. OIDC verification keys in JWKS format (RFC 7517). It contains a list of OIDC verification keys that can be used to verify OIDC JWTs.

This field is required for cluster that doesn't have a publicly available discovery endpoint. When provided, it will be directly used to verify the OIDC JWT asserted by the IDP.

bytes jwks = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The jwks.

getParserForType()

public Parser<AttachedOidcConfig> getParserForType()
Returns
TypeDescription
Parser<AttachedOidcConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AttachedOidcConfig.Builder newBuilderForType()
Returns
TypeDescription
AttachedOidcConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AttachedOidcConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AttachedOidcConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AttachedOidcConfig.Builder toBuilder()
Returns
TypeDescription
AttachedOidcConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException