class Doorkeeper::Config::Builder

def access_token_methods(*methods)

def access_token_methods(*methods)
  @config.instance_variable_set('@access_token_methods', methods)
end

def build

def build
  @config
end

def client_credentials(*methods)

def client_credentials(*methods)
  @config.instance_variable_set('@client_credentials', methods)
end

def confirm_application_owner

def confirm_application_owner
  @config.instance_variable_set('@confirm_application_owner', true)
end

def default_scopes(*scopes)

def default_scopes(*scopes)
  @config.instance_variable_set('@default_scopes', OAuth::Scopes.from_array(scopes))
end

def enable_application_owner(opts = {})

def enable_application_owner(opts = {})
  @config.instance_variable_set('@enable_application_owner', true)
  confirm_application_owner if opts[:confirmation].present? && opts[:confirmation]
end

def force_ssl_in_redirect_uri(boolean)

def force_ssl_in_redirect_uri(boolean)
  @config.instance_variable_set("@force_ssl_in_redirect_uri", boolean)
end

def initialize(&block)

def initialize(&block)
  @config = Config.new
  instance_eval(&block)
end

def optional_scopes(*scopes)

def optional_scopes(*scopes)
  @config.instance_variable_set('@optional_scopes', OAuth::Scopes.from_array(scopes))
end

def realm(realm)

def realm(realm)
  @config.instance_variable_set('@realm', realm)
end

def reuse_access_token

def reuse_access_token
  @config.instance_variable_set("@reuse_access_token", true)
end

def use_refresh_token

def use_refresh_token
  @config.instance_variable_set('@refresh_token_enabled', true)
end