@Test void testNullFile() { assertNull(BasicAuthFilter.getPath(null)); assertNull(BasicAuthFilter.getPath(new File(getAuthFile(), "nonexistent"))); }
static Path getPath(final File file) { return file != null && file.exists() ? file.toPath() : null; }
BasicAuthFilter implements ContainerRequestFilter { static Path getPath(final File file) { return file != null && file.exists() ? file.toPath() : null; } }
BasicAuthFilter implements ContainerRequestFilter { static Path getPath(final File file) { return file != null && file.exists() ? file.toPath() : null; } BasicAuthFilter(); }
BasicAuthFilter implements ContainerRequestFilter { static Path getPath(final File file) { return file != null && file.exists() ? file.toPath() : null; } BasicAuthFilter(); void setFile(final File file); void setChallenge(final String challenge); void setAdmins(final Set<String> admins); @Override void filter(final ContainerRequestContext requestContext); }
BasicAuthFilter implements ContainerRequestFilter { static Path getPath(final File file) { return file != null && file.exists() ? file.toPath() : null; } BasicAuthFilter(); void setFile(final File file); void setChallenge(final String challenge); void setAdmins(final Set<String> admins); @Override void filter(final ContainerRequestContext requestContext); static final String CONFIG_AUTH_BASIC_CREDENTIALS; static final String CONFIG_AUTH_REALM; static final String CONFIG_AUTH_ADMIN_USERS; }