< prev index next >

test/sun/security/krb5/config/DefUdpLimit.java

Print this page




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8009875
  27  * @summary Provide a default udp_preference_limit for krb5.conf

  28  * @compile -XDignore.symbol.file DefUdpLimit.java
  29  * @run main/othervm DefUdpLimit -1 1465
  30  * @run main/othervm DefUdpLimit 0 0
  31  * @run main/othervm DefUdpLimit 1234 1234
  32  * @run main/othervm DefUdpLimit 12345 12345
  33  * @run main/othervm DefUdpLimit 123456 32700
  34  *
  35  */
  36 
  37 import sun.security.krb5.KdcComm;
  38 
  39 import java.lang.reflect.Field;
  40 import java.nio.file.Files;
  41 import java.nio.file.Paths;
  42 
  43 public class DefUdpLimit {
  44 
  45     public static void main(String[] args) throws Exception {
  46         int set = Integer.valueOf(args[0]);
  47         int expected = Integer.valueOf(args[1]);


   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8009875
  27  * @summary Provide a default udp_preference_limit for krb5.conf
  28  * @modules java.security.jgss/sun.security.krb5
  29  * @compile -XDignore.symbol.file DefUdpLimit.java
  30  * @run main/othervm DefUdpLimit -1 1465
  31  * @run main/othervm DefUdpLimit 0 0
  32  * @run main/othervm DefUdpLimit 1234 1234
  33  * @run main/othervm DefUdpLimit 12345 12345
  34  * @run main/othervm DefUdpLimit 123456 32700
  35  *
  36  */
  37 
  38 import sun.security.krb5.KdcComm;
  39 
  40 import java.lang.reflect.Field;
  41 import java.nio.file.Files;
  42 import java.nio.file.Paths;
  43 
  44 public class DefUdpLimit {
  45 
  46     public static void main(String[] args) throws Exception {
  47         int set = Integer.valueOf(args[0]);
  48         int expected = Integer.valueOf(args[1]);
< prev index next >