THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
package org.apache.kafka.common.security.ssl; import javax.net.ssl.SSLContext; import java.util.Map; import java.util.Set; public interface SslContextFactory { /** * Returns SSLContext loaded by this factory. * * @return */ SSLContext getSSLContextcreateSSLContext(); /** * Returns the currently used configurations by this object. * @return */ Map<String, Object> configs(); /** * Returns the reconfigurable configs used by this object. * @return */ Set<String> reconfigurableConfigs(); /** * Returns true if the SSLContext needs to be rebuilt. * * @param nextConfigs The configuration we want to use. * @return True only if the SSLContext should be rebuilt. */ boolean shouldRebuiltFor(Map<String, Object> nextConfigs); } |
...
Code Block |
---|
public class SslFactory implement Reconfigurable { ... ... sslContextFactoryClass.getDeclaredConstructor(Map.class).newInstance(configs); ... } |
Sequence Diagrams for important interactions
SslFactory and SslContextFactory Interaction
Support for reconfiguration of custom configs
...