Codota Logo
AuthenticationSettings
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain AuthenticationSettings
private void myMethod () {
AuthenticationSettings a =
  • Codota Iconnew AuthenticationSettings()
  • Smart code suggestions by Codota
}
origin: org.restlet.jse/org.restlet.ext.platform

.maximumSize(authenticationSettings.getCacheSize())
.expireAfterWrite(
    authenticationSettings.getCacheTimeToLiveSeconds(),
    TimeUnit.SECONDS).build(userLoader);
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();
}
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

.maximumSize(authenticationSettings.getCacheSize())
.expireAfterWrite(
    authenticationSettings.getCacheTimeToLiveSeconds(),
    TimeUnit.SECONDS).build(userLoader);
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

.maximumSize(authenticationSettings.getCacheSize())
.expireAfterWrite(
    authenticationSettings.getCacheTimeToLiveSeconds(),
    TimeUnit.SECONDS).build(userLoader);
origin: org.restlet.gae/org.restlet.ext.platform

.maximumSize(authenticationSettings.getCacheSize())
.expireAfterWrite(
    authenticationSettings.getCacheTimeToLiveSeconds(),
    TimeUnit.SECONDS).build(userLoader);
org.restlet.ext.platform.internal.agent.beanAuthenticationSettings

Most used methods

  • <init>
  • getCacheSize
  • getCacheTimeToLiveSeconds
  • isOptional
  • setOptional

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JOptionPane (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now