Class TokenOptions (0.59.0)

publicfinalclass TokenOptionsextendsGeneratedMessageV3implementsTokenOptionsOrBuilder

Options to modify claims in the token to generate custom-purpose tokens.

Protobuf type google.cloud.confidentialcomputing.v1.TokenOptions

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

AUDIENCE_FIELD_NUMBER

publicstaticfinalintAUDIENCE_FIELD_NUMBER
Field Value
Type Description
int

AWS_PRINCIPAL_TAGS_OPTIONS_FIELD_NUMBER

publicstaticfinalintAWS_PRINCIPAL_TAGS_OPTIONS_FIELD_NUMBER
Field Value
Type Description
int

NONCE_FIELD_NUMBER

publicstaticfinalintNONCE_FIELD_NUMBER
Field Value
Type Description
int

TOKEN_TYPE_FIELD_NUMBER

publicstaticfinalintTOKEN_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticTokenOptionsgetDefaultInstance()
Returns
Type Description
TokenOptions

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticTokenOptions.BuildernewBuilder()
Returns
Type Description
TokenOptions.Builder

newBuilder(TokenOptions prototype)

publicstaticTokenOptions.BuildernewBuilder(TokenOptionsprototype)
Parameter
Name Description
prototype TokenOptions
Returns
Type Description
TokenOptions.Builder

parseDelimitedFrom(InputStream input)

publicstaticTokenOptionsparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
TokenOptions
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTokenOptionsparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TokenOptions
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticTokenOptionsparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
TokenOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticTokenOptionsparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TokenOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticTokenOptionsparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
TokenOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticTokenOptionsparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TokenOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticTokenOptionsparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TokenOptions
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTokenOptionsparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TokenOptions
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticTokenOptionsparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
TokenOptions
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTokenOptionsparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TokenOptions
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticTokenOptionsparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TokenOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticTokenOptionsparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TokenOptions
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<TokenOptions>parser()
Returns
Type Description
Parser<TokenOptions>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAudience()

publicStringgetAudience()

Optional. Optional string to issue the token with a custom audience claim. Required if one or more nonces are specified.

string audience = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The audience.

getAudienceBytes()

publicByteStringgetAudienceBytes()

Optional. Optional string to issue the token with a custom audience claim. Required if one or more nonces are specified.

string audience = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for audience.

getAwsPrincipalTagsOptions()

publicTokenOptions.AwsPrincipalTagsOptionsgetAwsPrincipalTagsOptions()

Optional. Options for the Limited AWS token type.

.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TokenOptions.AwsPrincipalTagsOptions

The awsPrincipalTagsOptions.

getAwsPrincipalTagsOptionsOrBuilder()

publicTokenOptions.AwsPrincipalTagsOptionsOrBuildergetAwsPrincipalTagsOptionsOrBuilder()

Optional. Options for the Limited AWS token type.

.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TokenOptions.AwsPrincipalTagsOptionsOrBuilder

getDefaultInstanceForType()

publicTokenOptionsgetDefaultInstanceForType()
Returns
Type Description
TokenOptions

getNonce(int index)

publicStringgetNonce(intindex)

Optional. Optional parameter to place one or more nonces in the eat_nonce claim in the output token. The minimum size for JSON-encoded EATs is 10 bytes and the maximum size is 74 bytes.

repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The nonce at the given index.

getNonceBytes(int index)

publicByteStringgetNonceBytes(intindex)

Optional. Optional parameter to place one or more nonces in the eat_nonce claim in the output token. The minimum size for JSON-encoded EATs is 10 bytes and the maximum size is 74 bytes.

repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the nonce at the given index.

getNonceCount()

publicintgetNonceCount()

Optional. Optional parameter to place one or more nonces in the eat_nonce claim in the output token. The minimum size for JSON-encoded EATs is 10 bytes and the maximum size is 74 bytes.

repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of nonce.

getNonceList()

publicProtocolStringListgetNonceList()

Optional. Optional parameter to place one or more nonces in the eat_nonce claim in the output token. The minimum size for JSON-encoded EATs is 10 bytes and the maximum size is 74 bytes.

repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the nonce.

getParserForType()

publicParser<TokenOptions>getParserForType()
Returns
Type Description
Parser<TokenOptions>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getTokenType()

publicTokenTypegetTokenType()

Optional. Optional token type to select what type of token to return.

.google.cloud.confidentialcomputing.v1.TokenType token_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TokenType

The tokenType.

getTokenTypeOptionsCase()

publicTokenOptions.TokenTypeOptionsCasegetTokenTypeOptionsCase()
Returns
Type Description
TokenOptions.TokenTypeOptionsCase

getTokenTypeValue()

publicintgetTokenTypeValue()

Optional. Optional token type to select what type of token to return.

.google.cloud.confidentialcomputing.v1.TokenType token_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for tokenType.

hasAwsPrincipalTagsOptions()

publicbooleanhasAwsPrincipalTagsOptions()

Optional. Options for the Limited AWS token type.

.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the awsPrincipalTagsOptions field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicTokenOptions.BuildernewBuilderForType()
Returns
Type Description
TokenOptions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedTokenOptions.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TokenOptions.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicTokenOptions.BuildertoBuilder()
Returns
Type Description
TokenOptions.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.