Send feedback
Class TokenOptions (0.41.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.41.0 keyboard_arrow_down
public final class TokenOptions extends GeneratedMessageV3 implements TokenOptionsOrBuilder
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
public static final int AUDIENCE_FIELD_NUMBER
Field Value
Type
Description
int
public static final int AWS_PRINCIPAL_TAGS_OPTIONS_FIELD_NUMBER
Field Value
Type
Description
int
NONCE_FIELD_NUMBER
public static final int NONCE_FIELD_NUMBER
Field Value
Type
Description
int
TOKEN_TYPE_FIELD_NUMBER
public static final int TOKEN_TYPE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static TokenOptions getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static TokenOptions . Builder newBuilder ()
newBuilder(TokenOptions prototype)
public static TokenOptions . Builder newBuilder ( TokenOptions prototype )
public static TokenOptions parseDelimitedFrom ( InputStream input )
public static TokenOptions parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static TokenOptions parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TokenOptions parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static TokenOptions parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TokenOptions parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static TokenOptions parseFrom ( CodedInputStream input )
public static TokenOptions parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static TokenOptions parseFrom ( InputStream input )
public static TokenOptions parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static TokenOptions parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TokenOptions parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<TokenOptions> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getAudience()
public String getAudience ()
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()
public ByteString getAudienceBytes ()
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.
public TokenOptions . AwsPrincipalTagsOptions getAwsPrincipalTagsOptions ()
Optional. Options for the Limited AWS token type.
.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL];
public TokenOptions . AwsPrincipalTagsOptionsOrBuilder getAwsPrincipalTagsOptionsOrBuilder ()
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()
public TokenOptions getDefaultInstanceForType ()
getNonce(int index)
public String getNonce ( int index )
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)
public ByteString getNonceBytes ( int index )
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()
public int 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()
public ProtocolStringList getNonceList ()
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()
public Parser<TokenOptions> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getTokenType()
public TokenType getTokenType ()
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()
public TokenOptions . TokenTypeOptionsCase getTokenTypeOptionsCase ()
getTokenTypeValue()
public int getTokenTypeValue ()
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.
public boolean hasAwsPrincipalTagsOptions ()
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()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public TokenOptions . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TokenOptions . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public TokenOptions . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
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-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]