@Test public void testSelect_AttributeIsTrue() { httpContext.setAttribute(SSLContextSelector.USE_TRUST_STORE, true); assertThat(sslContextSelector.select(httpContext), is(sslContext)); }
@Override public SSLContext select(final HttpContext context) { Object useTrustStore = context.getAttribute(SSLContextSelector.USE_TRUST_STORE); if (Boolean.TRUE.equals(useTrustStore)) { return trustStore.getSSLContext(); } return null; }
HttpContextAttributeSSLContextSelector extends ComponentSupport implements SSLContextSelector { @Override public SSLContext select(final HttpContext context) { Object useTrustStore = context.getAttribute(SSLContextSelector.USE_TRUST_STORE); if (Boolean.TRUE.equals(useTrustStore)) { return trustStore.getSSLContext(); } return null; } }
HttpContextAttributeSSLContextSelector extends ComponentSupport implements SSLContextSelector { @Override public SSLContext select(final HttpContext context) { Object useTrustStore = context.getAttribute(SSLContextSelector.USE_TRUST_STORE); if (Boolean.TRUE.equals(useTrustStore)) { return trustStore.getSSLContext(); } return null; } @Inject  HttpContextAttributeSSLContextSelector(final TrustStore trustStore); }
HttpContextAttributeSSLContextSelector extends ComponentSupport implements SSLContextSelector { @Override public SSLContext select(final HttpContext context) { Object useTrustStore = context.getAttribute(SSLContextSelector.USE_TRUST_STORE); if (Boolean.TRUE.equals(useTrustStore)) { return trustStore.getSSLContext(); } return null; } @Inject  HttpContextAttributeSSLContextSelector(final TrustStore trustStore); @Override SSLContext select(final HttpContext context); }
HttpContextAttributeSSLContextSelector extends ComponentSupport implements SSLContextSelector { @Override public SSLContext select(final HttpContext context) { Object useTrustStore = context.getAttribute(SSLContextSelector.USE_TRUST_STORE); if (Boolean.TRUE.equals(useTrustStore)) { return trustStore.getSSLContext(); } return null; } @Inject  HttpContextAttributeSSLContextSelector(final TrustStore trustStore); @Override SSLContext select(final HttpContext context);  }