Tabnine Logo
AuthorizationsDeclaration.getBasicAuth
Code IndexAdd Tabnine to your IDE (free)

How to use
getBasicAuth
method
in
org.restlet.ext.platform.internal.conversion.swagger.v1_2.model.AuthorizationsDeclaration

Best Java code snippets using org.restlet.ext.platform.internal.conversion.swagger.v1_2.model.AuthorizationsDeclaration.getBasicAuth (Showing top 4 results out of 315)

origin: org.restlet.jse/org.restlet.ext.platform

private static void fillEndpointAuthorization(AuthorizationsDeclaration authorizations, Endpoint endpoint) {
  if (authorizations != null) {
    if (authorizations.getBasicAuth() != null) {
      endpoint.setAuthenticationProtocol(ChallengeScheme.HTTP_BASIC
          .getName());
    } else if (authorizations.getOauth2() != null) {
      endpoint.setAuthenticationProtocol(ChallengeScheme.HTTP_OAUTH
          .getName());
    } else if (authorizations.getApiKey() != null) {
      endpoint.setAuthenticationProtocol(ChallengeScheme.CUSTOM
          .getName());
    }
  }
}
origin: org.restlet.jee/org.restlet.ext.platform

private static void fillEndpointAuthorization(AuthorizationsDeclaration authorizations, Endpoint endpoint) {
  if (authorizations != null) {
    if (authorizations.getBasicAuth() != null) {
      endpoint.setAuthenticationProtocol(ChallengeScheme.HTTP_BASIC
          .getName());
    } else if (authorizations.getOauth2() != null) {
      endpoint.setAuthenticationProtocol(ChallengeScheme.HTTP_OAUTH
          .getName());
    } else if (authorizations.getApiKey() != null) {
      endpoint.setAuthenticationProtocol(ChallengeScheme.CUSTOM
          .getName());
    }
  }
}
origin: org.restlet.gae/org.restlet.ext.platform

private static void fillEndpointAuthorization(AuthorizationsDeclaration authorizations, Endpoint endpoint) {
  if (authorizations != null) {
    if (authorizations.getBasicAuth() != null) {
      endpoint.setAuthenticationProtocol(ChallengeScheme.HTTP_BASIC
          .getName());
    } else if (authorizations.getOauth2() != null) {
      endpoint.setAuthenticationProtocol(ChallengeScheme.HTTP_OAUTH
          .getName());
    } else if (authorizations.getApiKey() != null) {
      endpoint.setAuthenticationProtocol(ChallengeScheme.CUSTOM
          .getName());
    }
  }
}
origin: org.restlet.osgi/org.restlet.ext.platform

private static void fillEndpointAuthorization(AuthorizationsDeclaration authorizations, Endpoint endpoint) {
  if (authorizations != null) {
    if (authorizations.getBasicAuth() != null) {
      endpoint.setAuthenticationProtocol(ChallengeScheme.HTTP_BASIC
          .getName());
    } else if (authorizations.getOauth2() != null) {
      endpoint.setAuthenticationProtocol(ChallengeScheme.HTTP_OAUTH
          .getName());
    } else if (authorizations.getApiKey() != null) {
      endpoint.setAuthenticationProtocol(ChallengeScheme.CUSTOM
          .getName());
    }
  }
}
org.restlet.ext.platform.internal.conversion.swagger.v1_2.modelAuthorizationsDeclarationgetBasicAuth

Popular methods of AuthorizationsDeclaration

  • <init>
  • getApiKey
  • getOauth2
  • setBasicAuth
  • setOauth2

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • putExtra (Intent)
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JFileChooser (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now