Tabnine Logo
HardcodedPublicKeyLocator.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.keycloak.adapters.rotation.HardcodedPublicKeyLocator
constructor

Best Java code snippets using org.keycloak.adapters.rotation.HardcodedPublicKeyLocator.<init> (Showing top 2 results out of 315)

origin: Alfresco/alfresco-repository

  /**
   * Finds the keycloak deployment bean and applies a hardcoded public key locator using the 
   * provided public key.
   */
  private void applyHardcodedPublicKey(PublicKey publicKey)
  {
    KeycloakDeployment deployment  = (KeycloakDeployment)childApplicationContextFactory.getApplicationContext().
          getBean(DEPLOYMENT_BEAN_NAME);
    HardcodedPublicKeyLocator publicKeyLocator = new HardcodedPublicKeyLocator(publicKey);
    deployment.setPublicKeyLocator(publicKeyLocator);
  }
}
origin: org.keycloak/keycloak-adapter-core

try {
  realmKey = PemUtils.decodePublicKey(realmKeyPem);
  HardcodedPublicKeyLocator pkLocator = new HardcodedPublicKeyLocator(realmKey);
  deployment.setPublicKeyLocator(pkLocator);
} catch (Exception e) {
org.keycloak.adapters.rotationHardcodedPublicKeyLocator<init>

Popular methods of HardcodedPublicKeyLocator

    Popular in Java

    • Reactive rest calls using spring rest template
    • getSupportFragmentManager (FragmentActivity)
    • onCreateOptionsMenu (Activity)
    • onRequestPermissionsResult (Fragment)
    • GridBagLayout (java.awt)
      The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
    • SocketTimeoutException (java.net)
      This exception is thrown when a timeout expired on a socket read or accept operation.
    • Path (java.nio.file)
    • Format (java.text)
      The base class for all formats. This is an abstract base class which specifies the protocol for clas
    • Calendar (java.util)
      Calendar is an abstract base class for converting between a Date object and a set of integer fields
    • JarFile (java.util.jar)
      JarFile is used to read jar entries and their associated data from jar files.
    • Top 12 Jupyter Notebook extensions
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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