test_class.file: adapters/oidc/adapter-core/src/test/java/org/keycloak/adapters/KeycloakDeploymentBuilderTest.java
test_class.identifier: KeycloakDeploymentBuilderTest
test_case.body: @Test
      public void load() {
          KeycloakDeployment deployment = KeycloakDeploymentBuilder.build(getClass().getResourceAsStream("/keycloak.json"));
          assertEquals("demo", deployment.getRealm());
          assertEquals("customer-portal", deployment.getResourceName());
  
          assertTrue(deployment.getPublicKeyLocator() instanceof HardcodedPublicKeyLocator);
          assertEquals(PemUtils.decodePublicKey("MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrVrCuTtArbgaZzL1hvh0xtL5mc7o0NqPVnYXkLvgcwiC3BjLGw1tGEGoJaXDuSaRllobm53JBhjx33UNv+5z/UMG4kytBWxheNVKnL6GgqlNabMaFfPLPCF8kAgKnsi79NMo+n6KnSY8YeUmec/p2vjO2NjsSAVcWEQMVhJ31LwIDAQAB"),
                  deployment.getPublicKeyLocator().getPublicKey(null, deployment));
  
          assertEquals("https://localhost:8443/auth", deployment.getAuthServerBaseUrl());
          assertEquals(SslRequired.EXTERNAL, deployment.getSslRequired());
          assertTrue(deployment.isUseResourceRoleMappings());
          assertTrue(deployment.isCors());
          assertEquals(1000, deployment.getCorsMaxAge());
          assertEquals("POST, PUT, DELETE, GET", deployment.getCorsAllowedMethods());
          assertEquals("X-Custom, X-Custom2", deployment.getCorsAllowedHeaders());
          assertEquals("X-Custom3, X-Custom4", deployment.getCorsExposedHeaders());
          assertTrue(deployment.isBearerOnly());
          assertTrue(deployment.isPublicClient());
          assertTrue(deployment.isEnableBasicAuth());
          assertTrue(deployment.isExposeToken());
          assertFalse(deployment.isOAuthQueryParameterEnabled());
          assertEquals("234234-234234-234234", deployment.getResourceCredentials().get("secret"));
          assertEquals(ClientIdAndSecretCredentialsProvider.PROVIDER_ID, deployment.getClientAuthenticator().getId());
          assertEquals(20, ((ThreadSafeClientConnManager) deployment.getClient().getConnectionManager()).getMaxTotal());
          assertEquals(RelativeUrlsUsed.NEVER, deployment.getRelativeUrls());
          assertTrue(deployment.isAlwaysRefreshToken());
          assertTrue(deployment.isRegisterNodeAtStartup());
          assertEquals(1000, deployment.getRegisterNodePeriod());
          assertEquals(TokenStore.COOKIE, deployment.getTokenStore());
          assertEquals("email", deployment.getPrincipalAttribute());
          assertEquals(10, deployment.getTokenMinimumTimeToLive());
          assertEquals(20, deployment.getMinTimeBetweenJwksRequests());
          assertEquals(120, deployment.getPublicKeyCacheTtl());
          assertEquals("/api/$1", deployment.getRedirectRewriteRules().get("^/wsmaster/api/(.*)$"));
          assertTrue(deployment.isVerifyTokenAudience());
      }
test_case.class_method_signature: KeycloakDeploymentBuilderTest.load()
test_case.full_signature: @Test public void load()
test_case.identifier: load
test_case.invocations: build getResourceAsStream getClass assertEquals getRealm assertEquals getResourceName assertTrue getPublicKeyLocator assertEquals decodePublicKey getPublicKey getPublicKeyLocator assertEquals getAuthServerBaseUrl assertEquals getSslRequired assertTrue isUseResourceRoleMappings assertTrue isCors assertEquals getCorsMaxAge assertEquals getCorsAllowedMethods assertEquals getCorsAllowedHeaders assertEquals getCorsExposedHeaders assertTrue isBearerOnly assertTrue isPublicClient assertTrue isEnableBasicAuth assertTrue isExposeToken assertFalse isOAuthQueryParameterEnabled assertEquals get getResourceCredentials assertEquals getId getClientAuthenticator assertEquals getMaxTotal getConnectionManager getClient assertEquals getRelativeUrls assertTrue isAlwaysRefreshToken assertTrue isRegisterNodeAtStartup assertEquals getRegisterNodePeriod assertEquals getTokenStore assertEquals getPrincipalAttribute assertEquals getTokenMinimumTimeToLive assertEquals getMinTimeBetweenJwksRequests assertEquals getPublicKeyCacheTtl assertEquals get getRedirectRewriteRules assertTrue isVerifyTokenAudience
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void load()
focal_class.declarator: log = Logger.getLogger(KeycloakDeploymentBuilder.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = Logger.getLogger(KeycloakDeploymentBuilder.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: deployment = new KeycloakDeployment()
focal_class.modifier: protected
focal_class.original_string: protected KeycloakDeployment deployment = new KeycloakDeployment();
focal_class.type: KeycloakDeployment
focal_class.var_name: deployment
focal_class.file: adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/KeycloakDeploymentBuilder.java
focal_class.identifier: KeycloakDeploymentBuilder
focal_class.class_method_signature: KeycloakDeploymentBuilder.KeycloakDeploymentBuilder()
focal_class.full_signature: protected  KeycloakDeploymentBuilder()
focal_class.identifier: KeycloakDeploymentBuilder
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.signature:  KeycloakDeploymentBuilder()
focal_class.class_method_signature: KeycloakDeploymentBuilder.internalBuild(final AdapterConfig adapterConfig)
focal_class.full_signature: protected KeycloakDeployment internalBuild(final AdapterConfig adapterConfig)
focal_class.identifier: internalBuild
focal_class.modifiers: protected
focal_class.parameters: (final AdapterConfig adapterConfig)
focal_class.return: KeycloakDeployment
focal_class.signature: KeycloakDeployment internalBuild(final AdapterConfig adapterConfig)
focal_class.class_method_signature: KeycloakDeploymentBuilder.createHttpClientProducer(final AdapterConfig adapterConfig)
focal_class.full_signature: private Callable<HttpClient> createHttpClientProducer(final AdapterConfig adapterConfig)
focal_class.identifier: createHttpClientProducer
focal_class.modifiers: private
focal_class.parameters: (final AdapterConfig adapterConfig)
focal_class.return: Callable<HttpClient>
focal_class.signature: Callable<HttpClient> createHttpClientProducer(final AdapterConfig adapterConfig)
focal_class.class_method_signature: KeycloakDeploymentBuilder.build(InputStream is)
focal_class.full_signature: public static KeycloakDeployment build(InputStream is)
focal_class.identifier: build
focal_class.modifiers: public static
focal_class.parameters: (InputStream is)
focal_class.return: KeycloakDeployment
focal_class.signature: KeycloakDeployment build(InputStream is)
focal_class.class_method_signature: KeycloakDeploymentBuilder.loadAdapterConfig(InputStream is)
focal_class.full_signature: public static AdapterConfig loadAdapterConfig(InputStream is)
focal_class.identifier: loadAdapterConfig
focal_class.modifiers: public static
focal_class.parameters: (InputStream is)
focal_class.return: AdapterConfig
focal_class.signature: AdapterConfig loadAdapterConfig(InputStream is)
focal_class.class_method_signature: KeycloakDeploymentBuilder.build(AdapterConfig adapterConfig)
focal_class.full_signature: public static KeycloakDeployment build(AdapterConfig adapterConfig)
focal_class.identifier: build
focal_class.modifiers: public static
focal_class.parameters: (AdapterConfig adapterConfig)
focal_class.return: KeycloakDeployment
focal_class.signature: KeycloakDeployment build(AdapterConfig adapterConfig)
focal_method.body: public static KeycloakDeployment build(InputStream is) {
          AdapterConfig adapterConfig = loadAdapterConfig(is);
          return new KeycloakDeploymentBuilder().internalBuild(adapterConfig);
      }
focal_method.class_method_signature: KeycloakDeploymentBuilder.build(InputStream is)
focal_method.full_signature: public static KeycloakDeployment build(InputStream is)
focal_method.identifier: build
focal_method.invocations: loadAdapterConfig internalBuild
focal_method.modifiers: public static
focal_method.parameters: (InputStream is)
focal_method.return: KeycloakDeployment
focal_method.signature: KeycloakDeployment build(InputStream is)