Tabnine Logo
HardcodedPublicKeyLocator
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.keycloak.adapters.rotation.HardcodedPublicKeyLocator (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

Most used methods

  • <init>

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • compareTo (BigDecimal)
  • getExternalFilesDir (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best plugins for Eclipse
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