@Test public void shouldCreateUnsecuredPathConstraint() { config = restConfigWith(ImmutableMap.of()); final ConstraintMapping mappings = AuthUtil.createUnsecuredConstraint(config, "/path/*"); assertThat(mappings.getMethod(), is("*")); assertThat(mappings.getPathSpec(), is("/path/*")); assertThat(mappings.getConstraint().getAuthenticate(), is(false)); }
public static ConstraintMapping createUnsecuredConstraint( final RestConfig restConfig, final String pathSpec ) { return createConstraint(restConfig, false, pathSpec); }
AuthUtil { public static ConstraintMapping createUnsecuredConstraint( final RestConfig restConfig, final String pathSpec ) { return createConstraint(restConfig, false, pathSpec); } }
AuthUtil { public static ConstraintMapping createUnsecuredConstraint( final RestConfig restConfig, final String pathSpec ) { return createConstraint(restConfig, false, pathSpec); } private  AuthUtil(); }
AuthUtil { public static ConstraintMapping createUnsecuredConstraint( final RestConfig restConfig, final String pathSpec ) { return createConstraint(restConfig, false, pathSpec); } private  AuthUtil(); static boolean isCorsEnabled(final RestConfig restConfig); static boolean isSkipOptionsAuth(final RestConfig restConfig); static ConstraintMapping createGlobalAuthConstraint(final RestConfig restConfig); static ConstraintMapping createSecuredConstraint(
      final RestConfig restConfig,
      final String pathSpec
  ); static ConstraintMapping createUnsecuredConstraint(
      final RestConfig restConfig,
      final String pathSpec
  ); static List<ConstraintMapping> createUnsecuredConstraints(final RestConfig restConfig); }
AuthUtil { public static ConstraintMapping createUnsecuredConstraint( final RestConfig restConfig, final String pathSpec ) { return createConstraint(restConfig, false, pathSpec); } private  AuthUtil(); static boolean isCorsEnabled(final RestConfig restConfig); static boolean isSkipOptionsAuth(final RestConfig restConfig); static ConstraintMapping createGlobalAuthConstraint(final RestConfig restConfig); static ConstraintMapping createSecuredConstraint(
      final RestConfig restConfig,
      final String pathSpec
  ); static ConstraintMapping createUnsecuredConstraint(
      final RestConfig restConfig,
      final String pathSpec
  ); static List<ConstraintMapping> createUnsecuredConstraints(final RestConfig restConfig);  }