Class Auth.OAuth2MetadataResponse

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Auth.OAuth2MetadataResponseOrBuilder, Serializable
    Enclosing class:
    Auth

    public static final class Auth.OAuth2MetadataResponse
    extends com.google.protobuf.GeneratedMessageV3
    implements Auth.OAuth2MetadataResponseOrBuilder
     OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata
     as defined in https://tools.ietf.org/html/rfc8414
     
    Protobuf type flyteidl.service.OAuth2MetadataResponse
    See Also:
    Serialized Form
    • Field Detail

      • issuer_

        private volatile Object issuer_
      • AUTHORIZATION_ENDPOINT_FIELD_NUMBER

        public static final int AUTHORIZATION_ENDPOINT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • authorizationEndpoint_

        private volatile Object authorizationEndpoint_
      • TOKEN_ENDPOINT_FIELD_NUMBER

        public static final int TOKEN_ENDPOINT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • tokenEndpoint_

        private volatile Object tokenEndpoint_
      • RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER

        public static final int RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • responseTypesSupported_

        private com.google.protobuf.LazyStringList responseTypesSupported_
      • SCOPES_SUPPORTED_FIELD_NUMBER

        public static final int SCOPES_SUPPORTED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • scopesSupported_

        private com.google.protobuf.LazyStringList scopesSupported_
      • TOKEN_ENDPOINT_AUTH_METHODS_SUPPORTED_FIELD_NUMBER

        public static final int TOKEN_ENDPOINT_AUTH_METHODS_SUPPORTED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • tokenEndpointAuthMethodsSupported_

        private com.google.protobuf.LazyStringList tokenEndpointAuthMethodsSupported_
      • jwksUri_

        private volatile Object jwksUri_
      • CODE_CHALLENGE_METHODS_SUPPORTED_FIELD_NUMBER

        public static final int CODE_CHALLENGE_METHODS_SUPPORTED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • codeChallengeMethodsSupported_

        private com.google.protobuf.LazyStringList codeChallengeMethodsSupported_
      • GRANT_TYPES_SUPPORTED_FIELD_NUMBER

        public static final int GRANT_TYPES_SUPPORTED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • grantTypesSupported_

        private com.google.protobuf.LazyStringList grantTypesSupported_
      • memoizedIsInitialized

        private byte memoizedIsInitialized
    • Constructor Detail

      • OAuth2MetadataResponse

        private OAuth2MetadataResponse​(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
      • OAuth2MetadataResponse

        private OAuth2MetadataResponse()
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getIssuer

        public String getIssuer()
         Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
         issuer.
         
        string issuer = 1;
        Specified by:
        getIssuer in interface Auth.OAuth2MetadataResponseOrBuilder
        Returns:
        The issuer.
      • getIssuerBytes

        public com.google.protobuf.ByteString getIssuerBytes()
         Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
         issuer.
         
        string issuer = 1;
        Specified by:
        getIssuerBytes in interface Auth.OAuth2MetadataResponseOrBuilder
        Returns:
        The bytes for issuer.
      • getAuthorizationEndpoint

        public String getAuthorizationEndpoint()
         URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
         supported that use the authorization endpoint.
         
        string authorization_endpoint = 2;
        Specified by:
        getAuthorizationEndpoint in interface Auth.OAuth2MetadataResponseOrBuilder
        Returns:
        The authorizationEndpoint.
      • getAuthorizationEndpointBytes

        public com.google.protobuf.ByteString getAuthorizationEndpointBytes()
         URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
         supported that use the authorization endpoint.
         
        string authorization_endpoint = 2;
        Specified by:
        getAuthorizationEndpointBytes in interface Auth.OAuth2MetadataResponseOrBuilder
        Returns:
        The bytes for authorizationEndpoint.
      • getTokenEndpointBytes

        public com.google.protobuf.ByteString getTokenEndpointBytes()
         URL of the authorization server's token endpoint [RFC6749].
         
        string token_endpoint = 3;
        Specified by:
        getTokenEndpointBytes in interface Auth.OAuth2MetadataResponseOrBuilder
        Returns:
        The bytes for tokenEndpoint.
      • getResponseTypesSupportedList

        public com.google.protobuf.ProtocolStringList getResponseTypesSupportedList()
         Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
         
        repeated string response_types_supported = 4;
        Specified by:
        getResponseTypesSupportedList in interface Auth.OAuth2MetadataResponseOrBuilder
        Returns:
        A list containing the responseTypesSupported.
      • getResponseTypesSupportedCount

        public int getResponseTypesSupportedCount()
         Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
         
        repeated string response_types_supported = 4;
        Specified by:
        getResponseTypesSupportedCount in interface Auth.OAuth2MetadataResponseOrBuilder
        Returns:
        The count of responseTypesSupported.
      • getResponseTypesSupported

        public String getResponseTypesSupported​(int index)
         Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
         
        repeated string response_types_supported = 4;
        Specified by:
        getResponseTypesSupported in interface Auth.OAuth2MetadataResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The responseTypesSupported at the given index.
      • getResponseTypesSupportedBytes

        public com.google.protobuf.ByteString getResponseTypesSupportedBytes​(int index)
         Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
         
        repeated string response_types_supported = 4;
        Specified by:
        getResponseTypesSupportedBytes in interface Auth.OAuth2MetadataResponseOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the responseTypesSupported at the given index.
      • getScopesSupportedList

        public com.google.protobuf.ProtocolStringList getScopesSupportedList()
         JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
         
        repeated string scopes_supported = 5;
        Specified by:
        getScopesSupportedList in interface Auth.OAuth2MetadataResponseOrBuilder
        Returns:
        A list containing the scopesSupported.
      • getScopesSupportedCount

        public int getScopesSupportedCount()
         JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
         
        repeated string scopes_supported = 5;
        Specified by:
        getScopesSupportedCount in interface Auth.OAuth2MetadataResponseOrBuilder
        Returns:
        The count of scopesSupported.
      • getScopesSupported

        public String getScopesSupported​(int index)
         JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
         
        repeated string scopes_supported = 5;
        Specified by:
        getScopesSupported in interface Auth.OAuth2MetadataResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The scopesSupported at the given index.
      • getScopesSupportedBytes

        public com.google.protobuf.ByteString getScopesSupportedBytes​(int index)
         JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
         
        repeated string scopes_supported = 5;
        Specified by:
        getScopesSupportedBytes in interface Auth.OAuth2MetadataResponseOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the scopesSupported at the given index.
      • getTokenEndpointAuthMethodsSupportedList

        public com.google.protobuf.ProtocolStringList getTokenEndpointAuthMethodsSupportedList()
         JSON array containing a list of client authentication methods supported by this token endpoint.
         
        repeated string token_endpoint_auth_methods_supported = 6;
        Specified by:
        getTokenEndpointAuthMethodsSupportedList in interface Auth.OAuth2MetadataResponseOrBuilder
        Returns:
        A list containing the tokenEndpointAuthMethodsSupported.
      • getTokenEndpointAuthMethodsSupportedCount

        public int getTokenEndpointAuthMethodsSupportedCount()
         JSON array containing a list of client authentication methods supported by this token endpoint.
         
        repeated string token_endpoint_auth_methods_supported = 6;
        Specified by:
        getTokenEndpointAuthMethodsSupportedCount in interface Auth.OAuth2MetadataResponseOrBuilder
        Returns:
        The count of tokenEndpointAuthMethodsSupported.
      • getTokenEndpointAuthMethodsSupported

        public String getTokenEndpointAuthMethodsSupported​(int index)
         JSON array containing a list of client authentication methods supported by this token endpoint.
         
        repeated string token_endpoint_auth_methods_supported = 6;
        Specified by:
        getTokenEndpointAuthMethodsSupported in interface Auth.OAuth2MetadataResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The tokenEndpointAuthMethodsSupported at the given index.
      • getTokenEndpointAuthMethodsSupportedBytes

        public com.google.protobuf.ByteString getTokenEndpointAuthMethodsSupportedBytes​(int index)
         JSON array containing a list of client authentication methods supported by this token endpoint.
         
        repeated string token_endpoint_auth_methods_supported = 6;
        Specified by:
        getTokenEndpointAuthMethodsSupportedBytes in interface Auth.OAuth2MetadataResponseOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the tokenEndpointAuthMethodsSupported at the given index.
      • getJwksUri

        public String getJwksUri()
         URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
         client uses to validate signatures from the authorization server.
         
        string jwks_uri = 7;
        Specified by:
        getJwksUri in interface Auth.OAuth2MetadataResponseOrBuilder
        Returns:
        The jwksUri.
      • getJwksUriBytes

        public com.google.protobuf.ByteString getJwksUriBytes()
         URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
         client uses to validate signatures from the authorization server.
         
        string jwks_uri = 7;
        Specified by:
        getJwksUriBytes in interface Auth.OAuth2MetadataResponseOrBuilder
        Returns:
        The bytes for jwksUri.
      • getCodeChallengeMethodsSupportedList

        public com.google.protobuf.ProtocolStringList getCodeChallengeMethodsSupportedList()
         JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
         this authorization server.
         
        repeated string code_challenge_methods_supported = 8;
        Specified by:
        getCodeChallengeMethodsSupportedList in interface Auth.OAuth2MetadataResponseOrBuilder
        Returns:
        A list containing the codeChallengeMethodsSupported.
      • getCodeChallengeMethodsSupportedCount

        public int getCodeChallengeMethodsSupportedCount()
         JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
         this authorization server.
         
        repeated string code_challenge_methods_supported = 8;
        Specified by:
        getCodeChallengeMethodsSupportedCount in interface Auth.OAuth2MetadataResponseOrBuilder
        Returns:
        The count of codeChallengeMethodsSupported.
      • getCodeChallengeMethodsSupported

        public String getCodeChallengeMethodsSupported​(int index)
         JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
         this authorization server.
         
        repeated string code_challenge_methods_supported = 8;
        Specified by:
        getCodeChallengeMethodsSupported in interface Auth.OAuth2MetadataResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The codeChallengeMethodsSupported at the given index.
      • getCodeChallengeMethodsSupportedBytes

        public com.google.protobuf.ByteString getCodeChallengeMethodsSupportedBytes​(int index)
         JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
         this authorization server.
         
        repeated string code_challenge_methods_supported = 8;
        Specified by:
        getCodeChallengeMethodsSupportedBytes in interface Auth.OAuth2MetadataResponseOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the codeChallengeMethodsSupported at the given index.
      • getGrantTypesSupportedList

        public com.google.protobuf.ProtocolStringList getGrantTypesSupportedList()
         JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
         
        repeated string grant_types_supported = 9;
        Specified by:
        getGrantTypesSupportedList in interface Auth.OAuth2MetadataResponseOrBuilder
        Returns:
        A list containing the grantTypesSupported.
      • getGrantTypesSupportedCount

        public int getGrantTypesSupportedCount()
         JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
         
        repeated string grant_types_supported = 9;
        Specified by:
        getGrantTypesSupportedCount in interface Auth.OAuth2MetadataResponseOrBuilder
        Returns:
        The count of grantTypesSupported.
      • getGrantTypesSupported

        public String getGrantTypesSupported​(int index)
         JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
         
        repeated string grant_types_supported = 9;
        Specified by:
        getGrantTypesSupported in interface Auth.OAuth2MetadataResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The grantTypesSupported at the given index.
      • getGrantTypesSupportedBytes

        public com.google.protobuf.ByteString getGrantTypesSupportedBytes​(int index)
         JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
         
        repeated string grant_types_supported = 9;
        Specified by:
        getGrantTypesSupportedBytes in interface Auth.OAuth2MetadataResponseOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the grantTypesSupported at the given index.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Auth.OAuth2MetadataResponse parseFrom​(ByteBuffer data)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Auth.OAuth2MetadataResponse parseFrom​(ByteBuffer data,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Auth.OAuth2MetadataResponse parseFrom​(com.google.protobuf.ByteString data)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Auth.OAuth2MetadataResponse parseFrom​(com.google.protobuf.ByteString data,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Auth.OAuth2MetadataResponse parseFrom​(byte[] data)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Auth.OAuth2MetadataResponse parseFrom​(byte[] data,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public Auth.OAuth2MetadataResponse.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Auth.OAuth2MetadataResponse.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Auth.OAuth2MetadataResponse.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Auth.OAuth2MetadataResponse> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Auth.OAuth2MetadataResponse getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder