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 |
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()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticTokenOptions.BuildernewBuilder()
newBuilder(TokenOptions prototype)
publicstaticTokenOptions.BuildernewBuilder(TokenOptionsprototype)
publicstaticTokenOptionsparseDelimitedFrom(InputStreaminput)
publicstaticTokenOptionsparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticTokenOptionsparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticTokenOptionsparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticTokenOptionsparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticTokenOptionsparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticTokenOptionsparseFrom(CodedInputStreaminput)
publicstaticTokenOptionsparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticTokenOptionsparseFrom(InputStreaminput)
publicstaticTokenOptionsparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticTokenOptionsparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticTokenOptionsparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<TokenOptions>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
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.
|
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];
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];
getDefaultInstanceForType()
publicTokenOptionsgetDefaultInstanceForType()
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()
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];
getParserForType()
publicParser<TokenOptions>getParserForType()
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()
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.
|
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()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicTokenOptions.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedTokenOptions.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicTokenOptions.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides