@Test void getX509Source_defaultAddressNotSet() throws Exception { TestUtils.setEnvironmentVariable(Address.SOCKET_ENV_VARIABLE, "" ); try { X509SourceManager.getX509Source(); } catch (IllegalStateException e) { assertEquals("Endpoint Socket Address Environment Variable is not set: SPIFFE_ENDPOINT_SOCKET", e.getMessage()); } }
public static synchronized X509Source getX509Source() throws X509SourceException, SocketEndpointAddressException { if (x509Source == null) { x509Source = DefaultX509Source.newSource(); } return x509Source; }
X509SourceManager { public static synchronized X509Source getX509Source() throws X509SourceException, SocketEndpointAddressException { if (x509Source == null) { x509Source = DefaultX509Source.newSource(); } return x509Source; } }
X509SourceManager { public static synchronized X509Source getX509Source() throws X509SourceException, SocketEndpointAddressException { if (x509Source == null) { x509Source = DefaultX509Source.newSource(); } return x509Source; } private  X509SourceManager(); }
X509SourceManager { public static synchronized X509Source getX509Source() throws X509SourceException, SocketEndpointAddressException { if (x509Source == null) { x509Source = DefaultX509Source.newSource(); } return x509Source; } private  X509SourceManager(); static synchronized X509Source getX509Source(); }
X509SourceManager { public static synchronized X509Source getX509Source() throws X509SourceException, SocketEndpointAddressException { if (x509Source == null) { x509Source = DefaultX509Source.newSource(); } return x509Source; } private  X509SourceManager(); static synchronized X509Source getX509Source();  }