Tabnine Logo
AuthenticationSettings.setOptional
Code IndexAdd Tabnine to your IDE (free)

How to use
setOptional
method
in
org.restlet.ext.platform.internal.agent.bean.AuthenticationSettings

Best Java code snippets using org.restlet.ext.platform.internal.agent.bean.AuthenticationSettings.setOptional (Showing top 4 results out of 315)

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

/**
 * Create a new Authentication module with the specified settings.
 * 
 * @param restletCloudConfig
 *            The agent configuration.
 * @param modulesSettings
 *            The modules settings.
 * @param context
 *            The context
 */
public AuthenticationModule(RestletCloudConfig restletCloudConfig,
    ModulesSettings modulesSettings, Context context) {
  super(context, ChallengeScheme.HTTP_BASIC, "realm");
  authenticationSettings = new AuthenticationSettings();
  authenticationSettings.setOptional(modulesSettings.isAuthorizationModuleEnabled());
  authenticateClientResource = AgentUtils.getClientResource(
      restletCloudConfig, modulesSettings,
      AuthenticationAuthenticateResource.class, AUTHENTICATE_PATH);
  // config ChallengeAuthenticator
  setOptional(authenticationSettings.isOptional());
  setVerifier(new AgentVerifier());
  // Initialize the cache
  initializeCache();
}
origin: org.restlet.osgi/org.restlet.ext.platform

/**
 * Create a new Authentication module with the specified settings.
 * 
 * @param restletCloudConfig
 *            The agent configuration.
 * @param modulesSettings
 *            The modules settings.
 * @param context
 *            The context
 */
public AuthenticationModule(RestletCloudConfig restletCloudConfig,
    ModulesSettings modulesSettings, Context context) {
  super(context, ChallengeScheme.HTTP_BASIC, "realm");
  authenticationSettings = new AuthenticationSettings();
  authenticationSettings.setOptional(modulesSettings.isAuthorizationModuleEnabled());
  authenticateClientResource = AgentUtils.getClientResource(
      restletCloudConfig, modulesSettings,
      AuthenticationAuthenticateResource.class, AUTHENTICATE_PATH);
  // config ChallengeAuthenticator
  setOptional(authenticationSettings.isOptional());
  setVerifier(new AgentVerifier());
  // Initialize the cache
  initializeCache();
}
origin: org.restlet.jee/org.restlet.ext.platform

/**
 * Create a new Authentication module with the specified settings.
 * 
 * @param restletCloudConfig
 *            The agent configuration.
 * @param modulesSettings
 *            The modules settings.
 * @param context
 *            The context
 */
public AuthenticationModule(RestletCloudConfig restletCloudConfig,
    ModulesSettings modulesSettings, Context context) {
  super(context, ChallengeScheme.HTTP_BASIC, "realm");
  authenticationSettings = new AuthenticationSettings();
  authenticationSettings.setOptional(modulesSettings.isAuthorizationModuleEnabled());
  authenticateClientResource = AgentUtils.getClientResource(
      restletCloudConfig, modulesSettings,
      AuthenticationAuthenticateResource.class, AUTHENTICATE_PATH);
  // config ChallengeAuthenticator
  setOptional(authenticationSettings.isOptional());
  setVerifier(new AgentVerifier());
  // Initialize the cache
  initializeCache();
}
origin: org.restlet.gae/org.restlet.ext.platform

/**
 * Create a new Authentication module with the specified settings.
 * 
 * @param restletCloudConfig
 *            The agent configuration.
 * @param modulesSettings
 *            The modules settings.
 * @param context
 *            The context
 */
public AuthenticationModule(RestletCloudConfig restletCloudConfig,
    ModulesSettings modulesSettings, Context context) {
  super(context, ChallengeScheme.HTTP_BASIC, "realm");
  authenticationSettings = new AuthenticationSettings();
  authenticationSettings.setOptional(modulesSettings.isAuthorizationModuleEnabled());
  authenticateClientResource = AgentUtils.getClientResource(
      restletCloudConfig, modulesSettings,
      AuthenticationAuthenticateResource.class, AUTHENTICATE_PATH);
  // config ChallengeAuthenticator
  setOptional(authenticationSettings.isOptional());
  setVerifier(new AgentVerifier());
  // Initialize the cache
  initializeCache();
}
org.restlet.ext.platform.internal.agent.beanAuthenticationSettingssetOptional

Popular methods of AuthenticationSettings

  • <init>
  • getCacheSize
  • getCacheTimeToLiveSeconds
  • isOptional

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • getSupportFragmentManager (FragmentActivity)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • 21 Best Atom Packages for 2021
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