Class OAuth2Credentials.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<OAuth2Credentials.Builder>
-
- io.envoyproxy.envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,OAuth2CredentialsOrBuilder,Cloneable
- Enclosing class:
- OAuth2Credentials
public static final class OAuth2Credentials.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OAuth2Credentials.Builder> implements OAuth2CredentialsOrBuilder
Protobuf typeenvoy.extensions.filters.http.oauth2.v3.OAuth2Credentials
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2Credentials.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OAuth2Credentialsbuild()OAuth2CredentialsbuildPartial()OAuth2Credentials.Builderclear()OAuth2Credentials.BuilderclearClientId()The client_id to be used in the authorize calls.OAuth2Credentials.BuilderclearCookieNames()The cookie names used in OAuth filters flow.OAuth2Credentials.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)OAuth2Credentials.BuilderclearHmacSecret()If present, the secret token will be a HMAC using the provided secret.OAuth2Credentials.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)OAuth2Credentials.BuilderclearTokenFormation()OAuth2Credentials.BuilderclearTokenSecret()The secret used to retrieve the access token.OAuth2Credentials.Builderclone()StringgetClientId()The client_id to be used in the authorize calls.com.google.protobuf.ByteStringgetClientIdBytes()The client_id to be used in the authorize calls.OAuth2Credentials.CookieNamesgetCookieNames()The cookie names used in OAuth filters flow.OAuth2Credentials.CookieNames.BuildergetCookieNamesBuilder()The cookie names used in OAuth filters flow.OAuth2Credentials.CookieNamesOrBuildergetCookieNamesOrBuilder()The cookie names used in OAuth filters flow.OAuth2CredentialsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()SdsSecretConfiggetHmacSecret()If present, the secret token will be a HMAC using the provided secret.SdsSecretConfig.BuildergetHmacSecretBuilder()If present, the secret token will be a HMAC using the provided secret.SdsSecretConfigOrBuildergetHmacSecretOrBuilder()If present, the secret token will be a HMAC using the provided secret.OAuth2Credentials.TokenFormationCasegetTokenFormationCase()SdsSecretConfiggetTokenSecret()The secret used to retrieve the access token.SdsSecretConfig.BuildergetTokenSecretBuilder()The secret used to retrieve the access token.SdsSecretConfigOrBuildergetTokenSecretOrBuilder()The secret used to retrieve the access token.booleanhasCookieNames()The cookie names used in OAuth filters flow.booleanhasHmacSecret()If present, the secret token will be a HMAC using the provided secret.booleanhasTokenSecret()The secret used to retrieve the access token.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()OAuth2Credentials.BuildermergeCookieNames(OAuth2Credentials.CookieNames value)The cookie names used in OAuth filters flow.OAuth2Credentials.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)OAuth2Credentials.BuildermergeFrom(com.google.protobuf.Message other)OAuth2Credentials.BuildermergeFrom(OAuth2Credentials other)OAuth2Credentials.BuildermergeHmacSecret(SdsSecretConfig value)If present, the secret token will be a HMAC using the provided secret.OAuth2Credentials.BuildermergeTokenSecret(SdsSecretConfig value)The secret used to retrieve the access token.OAuth2Credentials.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)OAuth2Credentials.BuildersetClientId(String value)The client_id to be used in the authorize calls.OAuth2Credentials.BuildersetClientIdBytes(com.google.protobuf.ByteString value)The client_id to be used in the authorize calls.OAuth2Credentials.BuildersetCookieNames(OAuth2Credentials.CookieNames value)The cookie names used in OAuth filters flow.OAuth2Credentials.BuildersetCookieNames(OAuth2Credentials.CookieNames.Builder builderForValue)The cookie names used in OAuth filters flow.OAuth2Credentials.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OAuth2Credentials.BuildersetHmacSecret(SdsSecretConfig value)If present, the secret token will be a HMAC using the provided secret.OAuth2Credentials.BuildersetHmacSecret(SdsSecretConfig.Builder builderForValue)If present, the secret token will be a HMAC using the provided secret.OAuth2Credentials.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)OAuth2Credentials.BuildersetTokenSecret(SdsSecretConfig value)The secret used to retrieve the access token.OAuth2Credentials.BuildersetTokenSecret(SdsSecretConfig.Builder builderForValue)The secret used to retrieve the access token.OAuth2Credentials.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<OAuth2Credentials.Builder>
-
clear
public OAuth2Credentials.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<OAuth2Credentials.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<OAuth2Credentials.Builder>
-
getDefaultInstanceForType
public OAuth2Credentials getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public OAuth2Credentials build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public OAuth2Credentials buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public OAuth2Credentials.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<OAuth2Credentials.Builder>
-
setField
public OAuth2Credentials.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OAuth2Credentials.Builder>
-
clearField
public OAuth2Credentials.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OAuth2Credentials.Builder>
-
clearOneof
public OAuth2Credentials.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<OAuth2Credentials.Builder>
-
setRepeatedField
public OAuth2Credentials.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OAuth2Credentials.Builder>
-
addRepeatedField
public OAuth2Credentials.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OAuth2Credentials.Builder>
-
mergeFrom
public OAuth2Credentials.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OAuth2Credentials.Builder>
-
mergeFrom
public OAuth2Credentials.Builder mergeFrom(OAuth2Credentials other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<OAuth2Credentials.Builder>
-
mergeFrom
public OAuth2Credentials.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OAuth2Credentials.Builder>- Throws:
IOException
-
getTokenFormationCase
public OAuth2Credentials.TokenFormationCase getTokenFormationCase()
- Specified by:
getTokenFormationCasein interfaceOAuth2CredentialsOrBuilder
-
clearTokenFormation
public OAuth2Credentials.Builder clearTokenFormation()
-
getClientId
public String getClientId()
The client_id to be used in the authorize calls. This value will be URL encoded when sent to the OAuth server.
string client_id = 1 [(.validate.rules) = { ... }- Specified by:
getClientIdin interfaceOAuth2CredentialsOrBuilder- Returns:
- The clientId.
-
getClientIdBytes
public com.google.protobuf.ByteString getClientIdBytes()
The client_id to be used in the authorize calls. This value will be URL encoded when sent to the OAuth server.
string client_id = 1 [(.validate.rules) = { ... }- Specified by:
getClientIdBytesin interfaceOAuth2CredentialsOrBuilder- Returns:
- The bytes for clientId.
-
setClientId
public OAuth2Credentials.Builder setClientId(String value)
The client_id to be used in the authorize calls. This value will be URL encoded when sent to the OAuth server.
string client_id = 1 [(.validate.rules) = { ... }- Parameters:
value- The clientId to set.- Returns:
- This builder for chaining.
-
clearClientId
public OAuth2Credentials.Builder clearClientId()
The client_id to be used in the authorize calls. This value will be URL encoded when sent to the OAuth server.
string client_id = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setClientIdBytes
public OAuth2Credentials.Builder setClientIdBytes(com.google.protobuf.ByteString value)
The client_id to be used in the authorize calls. This value will be URL encoded when sent to the OAuth server.
string client_id = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for clientId to set.- Returns:
- This builder for chaining.
-
hasTokenSecret
public boolean hasTokenSecret()
The secret used to retrieve the access token. This value will be URL encoded when sent to the OAuth server.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig token_secret = 2 [(.validate.rules) = { ... }- Specified by:
hasTokenSecretin interfaceOAuth2CredentialsOrBuilder- Returns:
- Whether the tokenSecret field is set.
-
getTokenSecret
public SdsSecretConfig getTokenSecret()
The secret used to retrieve the access token. This value will be URL encoded when sent to the OAuth server.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig token_secret = 2 [(.validate.rules) = { ... }- Specified by:
getTokenSecretin interfaceOAuth2CredentialsOrBuilder- Returns:
- The tokenSecret.
-
setTokenSecret
public OAuth2Credentials.Builder setTokenSecret(SdsSecretConfig value)
The secret used to retrieve the access token. This value will be URL encoded when sent to the OAuth server.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig token_secret = 2 [(.validate.rules) = { ... }
-
setTokenSecret
public OAuth2Credentials.Builder setTokenSecret(SdsSecretConfig.Builder builderForValue)
The secret used to retrieve the access token. This value will be URL encoded when sent to the OAuth server.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig token_secret = 2 [(.validate.rules) = { ... }
-
mergeTokenSecret
public OAuth2Credentials.Builder mergeTokenSecret(SdsSecretConfig value)
The secret used to retrieve the access token. This value will be URL encoded when sent to the OAuth server.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig token_secret = 2 [(.validate.rules) = { ... }
-
clearTokenSecret
public OAuth2Credentials.Builder clearTokenSecret()
The secret used to retrieve the access token. This value will be URL encoded when sent to the OAuth server.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig token_secret = 2 [(.validate.rules) = { ... }
-
getTokenSecretBuilder
public SdsSecretConfig.Builder getTokenSecretBuilder()
The secret used to retrieve the access token. This value will be URL encoded when sent to the OAuth server.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig token_secret = 2 [(.validate.rules) = { ... }
-
getTokenSecretOrBuilder
public SdsSecretConfigOrBuilder getTokenSecretOrBuilder()
The secret used to retrieve the access token. This value will be URL encoded when sent to the OAuth server.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig token_secret = 2 [(.validate.rules) = { ... }- Specified by:
getTokenSecretOrBuilderin interfaceOAuth2CredentialsOrBuilder
-
hasHmacSecret
public boolean hasHmacSecret()
If present, the secret token will be a HMAC using the provided secret.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig hmac_secret = 3 [(.validate.rules) = { ... }- Specified by:
hasHmacSecretin interfaceOAuth2CredentialsOrBuilder- Returns:
- Whether the hmacSecret field is set.
-
getHmacSecret
public SdsSecretConfig getHmacSecret()
If present, the secret token will be a HMAC using the provided secret.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig hmac_secret = 3 [(.validate.rules) = { ... }- Specified by:
getHmacSecretin interfaceOAuth2CredentialsOrBuilder- Returns:
- The hmacSecret.
-
setHmacSecret
public OAuth2Credentials.Builder setHmacSecret(SdsSecretConfig value)
If present, the secret token will be a HMAC using the provided secret.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig hmac_secret = 3 [(.validate.rules) = { ... }
-
setHmacSecret
public OAuth2Credentials.Builder setHmacSecret(SdsSecretConfig.Builder builderForValue)
If present, the secret token will be a HMAC using the provided secret.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig hmac_secret = 3 [(.validate.rules) = { ... }
-
mergeHmacSecret
public OAuth2Credentials.Builder mergeHmacSecret(SdsSecretConfig value)
If present, the secret token will be a HMAC using the provided secret.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig hmac_secret = 3 [(.validate.rules) = { ... }
-
clearHmacSecret
public OAuth2Credentials.Builder clearHmacSecret()
If present, the secret token will be a HMAC using the provided secret.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig hmac_secret = 3 [(.validate.rules) = { ... }
-
getHmacSecretBuilder
public SdsSecretConfig.Builder getHmacSecretBuilder()
If present, the secret token will be a HMAC using the provided secret.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig hmac_secret = 3 [(.validate.rules) = { ... }
-
getHmacSecretOrBuilder
public SdsSecretConfigOrBuilder getHmacSecretOrBuilder()
If present, the secret token will be a HMAC using the provided secret.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig hmac_secret = 3 [(.validate.rules) = { ... }- Specified by:
getHmacSecretOrBuilderin interfaceOAuth2CredentialsOrBuilder
-
hasCookieNames
public boolean hasCookieNames()
The cookie names used in OAuth filters flow.
.envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials.CookieNames cookie_names = 4;- Specified by:
hasCookieNamesin interfaceOAuth2CredentialsOrBuilder- Returns:
- Whether the cookieNames field is set.
-
getCookieNames
public OAuth2Credentials.CookieNames getCookieNames()
The cookie names used in OAuth filters flow.
.envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials.CookieNames cookie_names = 4;- Specified by:
getCookieNamesin interfaceOAuth2CredentialsOrBuilder- Returns:
- The cookieNames.
-
setCookieNames
public OAuth2Credentials.Builder setCookieNames(OAuth2Credentials.CookieNames value)
The cookie names used in OAuth filters flow.
.envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials.CookieNames cookie_names = 4;
-
setCookieNames
public OAuth2Credentials.Builder setCookieNames(OAuth2Credentials.CookieNames.Builder builderForValue)
The cookie names used in OAuth filters flow.
.envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials.CookieNames cookie_names = 4;
-
mergeCookieNames
public OAuth2Credentials.Builder mergeCookieNames(OAuth2Credentials.CookieNames value)
The cookie names used in OAuth filters flow.
.envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials.CookieNames cookie_names = 4;
-
clearCookieNames
public OAuth2Credentials.Builder clearCookieNames()
The cookie names used in OAuth filters flow.
.envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials.CookieNames cookie_names = 4;
-
getCookieNamesBuilder
public OAuth2Credentials.CookieNames.Builder getCookieNamesBuilder()
The cookie names used in OAuth filters flow.
.envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials.CookieNames cookie_names = 4;
-
getCookieNamesOrBuilder
public OAuth2Credentials.CookieNamesOrBuilder getCookieNamesOrBuilder()
The cookie names used in OAuth filters flow.
.envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials.CookieNames cookie_names = 4;- Specified by:
getCookieNamesOrBuilderin interfaceOAuth2CredentialsOrBuilder
-
setUnknownFields
public final OAuth2Credentials.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OAuth2Credentials.Builder>
-
mergeUnknownFields
public final OAuth2Credentials.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OAuth2Credentials.Builder>
-
-