Boolean want = config.wantClientAuth().get(); if( want != null )
Boolean want = config.wantClientAuth().get(); if( want != null )
@Override public void assemble( ModuleAssembly module ) throws AssemblyException { ModuleAssembly configModule = module; new EntityTestAssembler().assemble( configModule ); new SecureJettyServiceAssembler().withConfig( configModule, Visibility.layer ).assemble( module ); // START SNIPPET: config SecureJettyConfiguration config = configModule.forMixin( SecureJettyConfiguration.class ).declareDefaults(); config.hostName().set( "127.0.0.1" ); config.port().set( httpsPort ); config.keystorePath().set( getKeyStoreFile( SERVER_KEYSTORE_FILENAME ).getAbsolutePath() ); config.keystoreType().set( "JCEKS" ); config.keystorePassword().set( KS_PASSWORD ); config.truststorePath().set( getKeyStoreFile( TRUSTSTORE_FILENAME ).getAbsolutePath() ); config.truststoreType().set( "JCEKS" ); config.truststorePassword().set( KS_PASSWORD ); config.wantClientAuth().set( Boolean.TRUE ); // END SNIPPET: config addServlets( serve( "/hello" ).with( HelloWorldServletService.class ) ).to( module ); }