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

How to use
KeycloakLogger
in
org.keycloak.subsystem.adapter.logging

Best Java code snippets using org.keycloak.subsystem.adapter.logging.KeycloakLogger (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: org.keycloak/keycloak-wf9-subsystem

  /**
   * {@inheritDoc}
   */
  @Override
  public void initialize(final ExtensionContext context) {
    KeycloakLogger.ROOT_LOGGER.debug("Activating Keycloak Extension");
    final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MGMT_API_VERSION);

    ManagementResourceRegistration registration = subsystem.registerSubsystemModel(KEYCLOAK_SUBSYSTEM_RESOURCE);
    registration.registerSubModel(REALM_DEFINITION);
    ManagementResourceRegistration secureDeploymentRegistration = registration.registerSubModel(SECURE_DEPLOYMENT_DEFINITION);
    secureDeploymentRegistration.registerSubModel(CREDENTIAL_DEFINITION);

    subsystem.registerXMLElementWriter(PARSER);
  }
}
origin: org.keycloak/keycloak-wf9-subsystem

private void addKeycloakAuthData(DeploymentPhaseContext phaseContext, String deploymentName, KeycloakAdapterConfigService service) throws DeploymentUnitProcessingException {
  DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
  WarMetaData warMetaData = deploymentUnit.getAttachment(WarMetaData.ATTACHMENT_KEY);
  if (warMetaData == null) {
    throw new DeploymentUnitProcessingException("WarMetaData not found for " + deploymentName + ".  Make sure you have specified a WAR as your secure-deployment in the Keycloak subsystem.");
  }
  addJSONData(service.getJSON(deploymentName), warMetaData);
  JBossWebMetaData webMetaData = warMetaData.getMergedJBossWebMetaData();
  if (webMetaData == null) {
    webMetaData = new JBossWebMetaData();
    warMetaData.setMergedJBossWebMetaData(webMetaData);
  }
  LoginConfigMetaData loginConfig = webMetaData.getLoginConfig();
  if (loginConfig == null) {
    loginConfig = new LoginConfigMetaData();
    webMetaData.setLoginConfig(loginConfig);
  }
  loginConfig.setAuthMethod("KEYCLOAK");
  loginConfig.setRealmName(service.getRealmName(deploymentName));
  KeycloakLogger.ROOT_LOGGER.deploymentSecured(deploymentName);
}
origin: org.keycloak/keycloak-wildfly-subsystem

private void addKeycloakAuthData(DeploymentPhaseContext phaseContext, KeycloakAdapterConfigService service) throws DeploymentUnitProcessingException {
  DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
  WarMetaData warMetaData = deploymentUnit.getAttachment(WarMetaData.ATTACHMENT_KEY);
  if (warMetaData == null) {
    throw new DeploymentUnitProcessingException("WarMetaData not found for " + deploymentUnit.getName() + ".  Make sure you have specified a WAR as your secure-deployment in the Keycloak subsystem.");
  }
  addJSONData(service.getJSON(deploymentUnit), warMetaData);
  JBossWebMetaData webMetaData = warMetaData.getMergedJBossWebMetaData();
  if (webMetaData == null) {
    webMetaData = new JBossWebMetaData();
    warMetaData.setMergedJBossWebMetaData(webMetaData);
  }
  LoginConfigMetaData loginConfig = webMetaData.getLoginConfig();
  if (loginConfig == null) {
    loginConfig = new LoginConfigMetaData();
    webMetaData.setLoginConfig(loginConfig);
  }
  loginConfig.setAuthMethod("KEYCLOAK");
  loginConfig.setRealmName(service.getRealmName(deploymentUnit));
  KeycloakLogger.ROOT_LOGGER.deploymentSecured(deploymentUnit.getName());
}
origin: org.keycloak/keycloak-wildfly-subsystem

  /**
   * {@inheritDoc}
   */
  @Override
  public void initialize(final ExtensionContext context) {
    KeycloakLogger.ROOT_LOGGER.debug("Activating Keycloak Extension");
    final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MGMT_API_VERSION);

    ManagementResourceRegistration registration = subsystem.registerSubsystemModel(KEYCLOAK_SUBSYSTEM_RESOURCE);
    registration.registerSubModel(REALM_DEFINITION);
    ManagementResourceRegistration secureDeploymentRegistration = registration.registerSubModel(SECURE_DEPLOYMENT_DEFINITION);
    secureDeploymentRegistration.registerSubModel(CREDENTIAL_DEFINITION);
    secureDeploymentRegistration.registerSubModel(REDIRECT_RULE_DEFINITON);

    ManagementResourceRegistration secureServerRegistration = registration.registerSubModel(SECURE_SERVER_DEFINITION);
    secureServerRegistration.registerSubModel(CREDENTIAL_DEFINITION);
    secureServerRegistration.registerSubModel(REDIRECT_RULE_DEFINITON);

    subsystem.registerXMLElementWriter(PARSER);
  }
}
org.keycloak.subsystem.adapter.loggingKeycloakLogger

Javadoc

This interface to be fleshed out later when error messages are fully externalized.

Most used methods

  • debug
  • deploymentSecured

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
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