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>)
Static Fields
AUDIENCE_FIELD_NUMBER
public static final int AUDIENCE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NONCE_FIELD_NUMBER
public static final int NONCE_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.
|
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
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)
Overrides
toBuilder()
public TokenOptions.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides