Tabnine Logo
SSLContextBuilder.build
Code IndexAdd Tabnine to your IDE (free)

How to use
build
method
in
org.kie.server.router.utils.SSLContextBuilder

Best Java code snippets using org.kie.server.router.utils.SSLContextBuilder.build (Showing top 6 results out of 315)

origin: kiegroup/droolsjbpm-integration

@Test
public void testFirstAlias() {
  try {
    SSLContextBuilder.builder()
        .setKeyStorePath(KEYSTORE_PATH)
        .setKeyStorePassword(KEYSTORE_PASSWORD)
        .setKeyAlias(KEYSTORE_ALIAS_ONE)
        .build();
  } catch (RuntimeException e) {
    fail(e.getMessage());
  }
}
origin: kiegroup/droolsjbpm-integration

@Test
public void testSecondAlias() {
  try {
    SSLContextBuilder.builder()
        .setKeyStorePath(KEYSTORE_PATH)
        .setKeyStorePassword(KEYSTORE_PASSWORD)
        .setKeyAlias(KEYSTORE_ALIAS_TWO)
        .build();
  } catch (RuntimeException e) {
    fail(e.getMessage());
  }
}
origin: kiegroup/droolsjbpm-integration

  @Test
  public void testIncorrectPassword() {
    try {
      SSLContextBuilder.builder()
          .setKeyStorePath(KEYSTORE_PATH)
          .setKeyStorePassword("bla")
          .setKeyAlias(KEYSTORE_ALIAS_ONE)
          .build();
      // should fail
      fail("Exception not thrown");
    } catch (RuntimeException e) {
      assertTrue(e.getCause() instanceof IOException);
    }
  }
}
origin: kiegroup/droolsjbpm-integration

@Test
public void testNonExistingAlias() {
  try {
    SSLContextBuilder.builder()
        .setKeyStorePath(KEYSTORE_PATH)
        .setKeyStorePassword(KEYSTORE_PASSWORD)
        .setKeyAlias("bla")
        .build();
    // should fail
    fail("Exception not thrown");
  } catch (RuntimeException e) {
    assertTrue(e.getCause() instanceof IllegalArgumentException);
  }
}
origin: kiegroup/droolsjbpm-integration

    .setKeyStorePath(KEYSTORE_PATH)
    .setKeyStorePassword(KEYSTORE_PASSWORD)
    .setKeyAlias(KEYSTORE_KEYALIAS).build();
undertowBuilder = undertowBuilder.addHttpsListener(portTls,
                          host,
origin: org.kie.server/kie-server-router-proxy

    .setKeyStorePath(KEYSTORE_PATH)
    .setKeyStorePassword(KEYSTORE_PASSWORD)
    .setKeyAlias(KEYSTORE_KEYALIAS).build();
undertowBuilder = undertowBuilder.addHttpsListener(portTls,
                          host,
org.kie.server.router.utilsSSLContextBuilderbuild

Popular methods of SSLContextBuilder

  • builder
  • setKeyAlias
  • setKeyStorePassword
  • setKeyStorePath
  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • Menu (java.awt)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • From CI to AI: The AI layer in your organization
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