Class OAuth2Credentials.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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
[#next-free-field: 6]Protobuf type
envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The client_id to be used in the authorize calls.The domain to set the cookie on.The cookie names used in OAuth filters flow.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) If present, the secret token will be a HMAC using the provided secret.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The secret used to retrieve the access token.clone()The client_id to be used in the authorize calls.com.google.protobuf.ByteStringThe client_id to be used in the authorize calls.The domain to set the cookie on.com.google.protobuf.ByteStringThe domain to set the cookie on.The cookie names used in OAuth filters flow.The cookie names used in OAuth filters flow.The cookie names used in OAuth filters flow.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf present, the secret token will be a HMAC using the provided secret.If present, the secret token will be a HMAC using the provided secret.If present, the secret token will be a HMAC using the provided secret.The secret used to retrieve the access token.The secret used to retrieve the access token.The secret used to retrieve the access token.booleanThe cookie names used in OAuth filters flow.booleanIf present, the secret token will be a HMAC using the provided secret.booleanThe secret used to retrieve the access token.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanThe cookie names used in OAuth filters flow.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(OAuth2Credentials other) mergeHmacSecret(SdsSecretConfig value) If present, the secret token will be a HMAC using the provided secret.mergeTokenSecret(SdsSecretConfig value) The secret used to retrieve the access token.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setClientId(String value) The client_id to be used in the authorize calls.setClientIdBytes(com.google.protobuf.ByteString value) The client_id to be used in the authorize calls.setCookieDomain(String value) The domain to set the cookie on.setCookieDomainBytes(com.google.protobuf.ByteString value) The domain to set the cookie on.The cookie names used in OAuth filters flow.setCookieNames(OAuth2Credentials.CookieNames.Builder builderForValue) The cookie names used in OAuth filters flow.setHmacSecret(SdsSecretConfig value) If present, the secret token will be a HMAC using the provided secret.setHmacSecret(SdsSecretConfig.Builder builderForValue) If present, the secret token will be a HMAC using the provided secret.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTokenSecret(SdsSecretConfig value) The secret used to retrieve the access token.setTokenSecret(SdsSecretConfig.Builder builderForValue) The secret used to retrieve the access token.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OAuth2Credentials.Builder>
-
clearOneof
- 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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OAuth2Credentials.Builder>
-
mergeFrom
-
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
- Specified by:
getTokenFormationCasein interfaceOAuth2CredentialsOrBuilder
-
clearTokenFormation
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
The cookie names used in OAuth filters flow.
.envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials.CookieNames cookie_names = 4; -
clearCookieNames
The cookie names used in OAuth filters flow.
.envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials.CookieNames cookie_names = 4; -
getCookieNamesBuilder
The cookie names used in OAuth filters flow.
.envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials.CookieNames cookie_names = 4; -
getCookieNamesOrBuilder
The cookie names used in OAuth filters flow.
.envoy.extensions.filters.http.oauth2.v3.OAuth2Credentials.CookieNames cookie_names = 4;- Specified by:
getCookieNamesOrBuilderin interfaceOAuth2CredentialsOrBuilder
-
getCookieDomain
The domain to set the cookie on. If not set, the cookie will default to the host of the request, not including the subdomains. This is useful when token cookies need to be shared across multiple subdomains.
string cookie_domain = 5 [(.validate.rules) = { ... }- Specified by:
getCookieDomainin interfaceOAuth2CredentialsOrBuilder- Returns:
- The cookieDomain.
-
getCookieDomainBytes
public com.google.protobuf.ByteString getCookieDomainBytes()The domain to set the cookie on. If not set, the cookie will default to the host of the request, not including the subdomains. This is useful when token cookies need to be shared across multiple subdomains.
string cookie_domain = 5 [(.validate.rules) = { ... }- Specified by:
getCookieDomainBytesin interfaceOAuth2CredentialsOrBuilder- Returns:
- The bytes for cookieDomain.
-
setCookieDomain
The domain to set the cookie on. If not set, the cookie will default to the host of the request, not including the subdomains. This is useful when token cookies need to be shared across multiple subdomains.
string cookie_domain = 5 [(.validate.rules) = { ... }- Parameters:
value- The cookieDomain to set.- Returns:
- This builder for chaining.
-
clearCookieDomain
The domain to set the cookie on. If not set, the cookie will default to the host of the request, not including the subdomains. This is useful when token cookies need to be shared across multiple subdomains.
string cookie_domain = 5 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setCookieDomainBytes
The domain to set the cookie on. If not set, the cookie will default to the host of the request, not including the subdomains. This is useful when token cookies need to be shared across multiple subdomains.
string cookie_domain = 5 [(.validate.rules) = { ... }- Parameters:
value- The bytes for cookieDomain to set.- Returns:
- This builder for chaining.
-
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>
-