test_class.declarator: chain
test_class.modifier: private
test_class.original_string: private X509Certificate[] chain;
test_class.type: X509Certificate[]
test_class.var_name: chain
test_class.declarator: subject
test_class.modifier: private
test_class.original_string: private ExtensibleTrustManagerImpl subject;
test_class.type: ExtensibleTrustManagerImpl
test_class.var_name: subject
test_class.declarator: trustmanagerProvider
test_class.modifier: private @Mock
test_class.original_string: private @Mock TlsTrustManagerProvider trustmanagerProvider;
test_class.type: TlsTrustManagerProvider
test_class.var_name: trustmanagerProvider
test_class.declarator: trustmanagerProviderHostPort
test_class.modifier: private @Mock
test_class.original_string: private @Mock TlsTrustManagerProvider trustmanagerProviderHostPort;
test_class.type: TlsTrustManagerProvider
test_class.var_name: trustmanagerProviderHostPort
test_class.declarator: trustmanager
test_class.modifier: private @Mock
test_class.original_string: private @Mock X509ExtendedTrustManager trustmanager;
test_class.type: X509ExtendedTrustManager
test_class.var_name: trustmanager
test_class.declarator: trustmanager2
test_class.modifier: private @Mock
test_class.original_string: private @Mock X509ExtendedTrustManager trustmanager2;
test_class.type: X509ExtendedTrustManager
test_class.var_name: trustmanager2
test_class.declarator: defaultTrustManager
test_class.modifier: private @Mock
test_class.original_string: private @Mock X509ExtendedTrustManager defaultTrustManager;
test_class.type: X509ExtendedTrustManager
test_class.var_name: defaultTrustManager
test_class.declarator: sslEngine
test_class.modifier: private @Mock
test_class.original_string: private @Mock SSLEngine sslEngine;
test_class.type: SSLEngine
test_class.var_name: sslEngine
test_class.declarator: topOfChain
test_class.modifier: private @Mock
test_class.original_string: private @Mock X509Certificate topOfChain;
test_class.type: X509Certificate
test_class.var_name: topOfChain
test_class.declarator: bottomOfChain
test_class.modifier: private @Mock
test_class.original_string: private @Mock X509Certificate bottomOfChain;
test_class.type: X509Certificate
test_class.var_name: bottomOfChain
test_class.file: bundles/org.openhab.core.io.net/src/test/java/org/openhab/core/io/net/http/internal/ExtensibleTrustManagerImplTest.java
test_class.identifier: ExtensibleTrustManagerImplTest
test_case.body: @Test
      public void shouldBeResilientAgainstMissingCommonNames() throws CertificateException, IllegalAccessException,
              NoSuchFieldException, SecurityException, IllegalArgumentException {
          writeField(subject, "defaultTrustManager", defaultTrustManager, true);
  
          when(topOfChain.getSubjectX500Principal()).thenReturn(new X500Principal("OU=Smarthome, O=Eclipse, C=DE"));
  
          subject.checkClientTrusted(chain, "just");
  
          verify(defaultTrustManager).checkClientTrusted(chain, "just", (Socket) null);
          verifyNoMoreInteractions(trustmanager);
      }
test_case.class_method_signature: ExtensibleTrustManagerImplTest.shouldBeResilientAgainstMissingCommonNames()
test_case.full_signature: @Test public void shouldBeResilientAgainstMissingCommonNames()
test_case.identifier: shouldBeResilientAgainstMissingCommonNames
test_case.invocations: writeField thenReturn when getSubjectX500Principal checkClientTrusted checkClientTrusted verify verifyNoMoreInteractions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldBeResilientAgainstMissingCommonNames()
focal_class.declarator: logger = LoggerFactory.getLogger(ExtensibleTrustManagerImpl.class)
focal_class.modifier: private final
focal_class.original_string: private final Logger logger = LoggerFactory.getLogger(ExtensibleTrustManagerImpl.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: EMPTY_QUEUE = new ConcurrentLinkedQueue<>()
focal_class.modifier: private static final
focal_class.original_string: private static final Queue<X509ExtendedTrustManager> EMPTY_QUEUE = new ConcurrentLinkedQueue<>();
focal_class.type: Queue<X509ExtendedTrustManager>
focal_class.var_name: EMPTY_QUEUE
focal_class.declarator: defaultTrustManager = TrustManagerUtil.keyStoreToTrustManager(null)
focal_class.modifier: private final
focal_class.original_string: private final X509ExtendedTrustManager defaultTrustManager = TrustManagerUtil.keyStoreToTrustManager(null);
focal_class.type: X509ExtendedTrustManager
focal_class.var_name: defaultTrustManager
focal_class.declarator: linkedTrustManager = new ConcurrentHashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<String, Queue<X509ExtendedTrustManager>> linkedTrustManager = new ConcurrentHashMap<>();
focal_class.type: Map<String, Queue<X509ExtendedTrustManager>>
focal_class.var_name: linkedTrustManager
focal_class.declarator: mappingFromTlsCertificateProvider = new ConcurrentHashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<TlsCertificateProvider, X509ExtendedTrustManager> mappingFromTlsCertificateProvider = new ConcurrentHashMap<>();
focal_class.type: Map<TlsCertificateProvider, X509ExtendedTrustManager>
focal_class.var_name: mappingFromTlsCertificateProvider
focal_class.file: bundles/org.openhab.core.io.net/src/main/java/org/openhab/core/io/net/http/internal/ExtensibleTrustManagerImpl.java
focal_class.identifier: ExtensibleTrustManagerImpl
focal_class.interfaces: implements ExtensibleTrustManager
focal_class.class_method_signature: ExtensibleTrustManagerImpl.checkClientTrusted(X509Certificate[] chain, String authType)
focal_class.full_signature: @Override public void checkClientTrusted(X509Certificate[] chain, String authType)
focal_class.identifier: checkClientTrusted
focal_class.modifiers: @Override public
focal_class.parameters: (X509Certificate[] chain, String authType)
focal_class.return: void
focal_class.signature: void checkClientTrusted(X509Certificate[] chain, String authType)
focal_class.class_method_signature: ExtensibleTrustManagerImpl.checkServerTrusted(X509Certificate[] chain, String authType)
focal_class.full_signature: @Override public void checkServerTrusted(X509Certificate[] chain, String authType)
focal_class.identifier: checkServerTrusted
focal_class.modifiers: @Override public
focal_class.parameters: (X509Certificate[] chain, String authType)
focal_class.return: void
focal_class.signature: void checkServerTrusted(X509Certificate[] chain, String authType)
focal_class.class_method_signature: ExtensibleTrustManagerImpl.getAcceptedIssuers()
focal_class.full_signature: @Override public X509Certificate[] getAcceptedIssuers()
focal_class.identifier: getAcceptedIssuers
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: X509Certificate[]
focal_class.signature: X509Certificate[] getAcceptedIssuers()
focal_class.class_method_signature: ExtensibleTrustManagerImpl.checkClientTrusted(X509Certificate[] chain, String authType, Socket socket)
focal_class.full_signature: @Override public void checkClientTrusted(X509Certificate[] chain, String authType, Socket socket)
focal_class.identifier: checkClientTrusted
focal_class.modifiers: @Override public
focal_class.parameters: (X509Certificate[] chain, String authType, Socket socket)
focal_class.return: void
focal_class.signature: void checkClientTrusted(X509Certificate[] chain, String authType, Socket socket)
focal_class.class_method_signature: ExtensibleTrustManagerImpl.checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine)
focal_class.full_signature: @Override public void checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine)
focal_class.identifier: checkClientTrusted
focal_class.modifiers: @Override public
focal_class.parameters: (X509Certificate[] chain, String authType, SSLEngine sslEngine)
focal_class.return: void
focal_class.signature: void checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine)
focal_class.class_method_signature: ExtensibleTrustManagerImpl.checkServerTrusted(X509Certificate[] chain, String authType, Socket socket)
focal_class.full_signature: @Override public void checkServerTrusted(X509Certificate[] chain, String authType, Socket socket)
focal_class.identifier: checkServerTrusted
focal_class.modifiers: @Override public
focal_class.parameters: (X509Certificate[] chain, String authType, Socket socket)
focal_class.return: void
focal_class.signature: void checkServerTrusted(X509Certificate[] chain, String authType, Socket socket)
focal_class.class_method_signature: ExtensibleTrustManagerImpl.checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine)
focal_class.full_signature: @Override public void checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine)
focal_class.identifier: checkServerTrusted
focal_class.modifiers: @Override public
focal_class.parameters: (X509Certificate[] chain, String authType, SSLEngine sslEngine)
focal_class.return: void
focal_class.signature: void checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine)
focal_class.class_method_signature: ExtensibleTrustManagerImpl.getLinkedTrustMananger(X509Certificate[] chain, SSLEngine sslEngine)
focal_class.full_signature: private X509ExtendedTrustManager getLinkedTrustMananger(X509Certificate[] chain, SSLEngine sslEngine)
focal_class.identifier: getLinkedTrustMananger
focal_class.modifiers: private
focal_class.parameters: (X509Certificate[] chain, SSLEngine sslEngine)
focal_class.return: X509ExtendedTrustManager
focal_class.signature: X509ExtendedTrustManager getLinkedTrustMananger(X509Certificate[] chain, SSLEngine sslEngine)
focal_class.class_method_signature: ExtensibleTrustManagerImpl.getLinkedTrustMananger(X509Certificate[] chain)
focal_class.full_signature: private X509ExtendedTrustManager getLinkedTrustMananger(X509Certificate[] chain)
focal_class.identifier: getLinkedTrustMananger
focal_class.modifiers: private
focal_class.parameters: (X509Certificate[] chain)
focal_class.return: X509ExtendedTrustManager
focal_class.signature: X509ExtendedTrustManager getLinkedTrustMananger(X509Certificate[] chain)
focal_class.class_method_signature: ExtensibleTrustManagerImpl.getSubjectAlternatives(X509Certificate[] chain)
focal_class.full_signature: private Collection<List<?>> getSubjectAlternatives(X509Certificate[] chain)
focal_class.identifier: getSubjectAlternatives
focal_class.modifiers: private
focal_class.parameters: (X509Certificate[] chain)
focal_class.return: Collection<List<?>>
focal_class.signature: Collection<List<?>> getSubjectAlternatives(X509Certificate[] chain)
focal_class.class_method_signature: ExtensibleTrustManagerImpl.getCommonName(X509Certificate x509Certificate)
focal_class.full_signature: private String getCommonName(X509Certificate x509Certificate)
focal_class.identifier: getCommonName
focal_class.modifiers: private
focal_class.parameters: (X509Certificate x509Certificate)
focal_class.return: String
focal_class.signature: String getCommonName(X509Certificate x509Certificate)
focal_class.class_method_signature: ExtensibleTrustManagerImpl.addTlsCertificateProvider(TlsCertificateProvider tlsCertificateProvider)
focal_class.full_signature: @Override @Reference(cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC) public void addTlsCertificateProvider(TlsCertificateProvider tlsCertificateProvider)
focal_class.identifier: addTlsCertificateProvider
focal_class.modifiers: @Override @Reference(cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC) public
focal_class.parameters: (TlsCertificateProvider tlsCertificateProvider)
focal_class.return: void
focal_class.signature: void addTlsCertificateProvider(TlsCertificateProvider tlsCertificateProvider)
focal_class.class_method_signature: ExtensibleTrustManagerImpl.removeTlsCertificateProvider(TlsCertificateProvider tlsCertificateProvider)
focal_class.full_signature: @Override public void removeTlsCertificateProvider(TlsCertificateProvider tlsCertificateProvider)
focal_class.identifier: removeTlsCertificateProvider
focal_class.modifiers: @Override public
focal_class.parameters: (TlsCertificateProvider tlsCertificateProvider)
focal_class.return: void
focal_class.signature: void removeTlsCertificateProvider(TlsCertificateProvider tlsCertificateProvider)
focal_class.class_method_signature: ExtensibleTrustManagerImpl.addTlsTrustManagerProvider(TlsTrustManagerProvider tlsTrustManagerProvider)
focal_class.full_signature: @Override @Reference(cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC) public void addTlsTrustManagerProvider(TlsTrustManagerProvider tlsTrustManagerProvider)
focal_class.identifier: addTlsTrustManagerProvider
focal_class.modifiers: @Override @Reference(cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC) public
focal_class.parameters: (TlsTrustManagerProvider tlsTrustManagerProvider)
focal_class.return: void
focal_class.signature: void addTlsTrustManagerProvider(TlsTrustManagerProvider tlsTrustManagerProvider)
focal_class.class_method_signature: ExtensibleTrustManagerImpl.removeTlsTrustManagerProvider(TlsTrustManagerProvider tlsTrustManagerProvider)
focal_class.full_signature: @Override public void removeTlsTrustManagerProvider(TlsTrustManagerProvider tlsTrustManagerProvider)
focal_class.identifier: removeTlsTrustManagerProvider
focal_class.modifiers: @Override public
focal_class.parameters: (TlsTrustManagerProvider tlsTrustManagerProvider)
focal_class.return: void
focal_class.signature: void removeTlsTrustManagerProvider(TlsTrustManagerProvider tlsTrustManagerProvider)
focal_class.class_method_signature: ExtensibleTrustManagerImpl.addLinkedTrustManager(String hostName, X509ExtendedTrustManager trustManager)
focal_class.full_signature: private void addLinkedTrustManager(String hostName, X509ExtendedTrustManager trustManager)
focal_class.identifier: addLinkedTrustManager
focal_class.modifiers: private
focal_class.parameters: (String hostName, X509ExtendedTrustManager trustManager)
focal_class.return: void
focal_class.signature: void addLinkedTrustManager(String hostName, X509ExtendedTrustManager trustManager)
focal_class.class_method_signature: ExtensibleTrustManagerImpl.removeLinkedTrustManager(String hostName, X509ExtendedTrustManager trustManager)
focal_class.full_signature: private void removeLinkedTrustManager(String hostName, X509ExtendedTrustManager trustManager)
focal_class.identifier: removeLinkedTrustManager
focal_class.modifiers: private
focal_class.parameters: (String hostName, X509ExtendedTrustManager trustManager)
focal_class.return: void
focal_class.signature: void removeLinkedTrustManager(String hostName, X509ExtendedTrustManager trustManager)
focal_class.superclass: extends X509ExtendedTrustManager
focal_method.body: @Override
      public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {
          checkClientTrusted(chain, authType, (Socket) null);
      }
focal_method.class_method_signature: ExtensibleTrustManagerImpl.checkClientTrusted(X509Certificate[] chain, String authType)
focal_method.full_signature: @Override public void checkClientTrusted(X509Certificate[] chain, String authType)
focal_method.identifier: checkClientTrusted
focal_method.invocations: checkClientTrusted
focal_method.modifiers: @Override public
focal_method.parameters: (X509Certificate[] chain, String authType)
focal_method.return: void
focal_method.signature: void checkClientTrusted(X509Certificate[] chain, String authType)