test/sun/security/krb5/auto/SSL.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 37,51 **** * @run main/othervm SSL TLS_KRB5_EXPORT_WITH_RC4_40_MD5 * @run main/othervm SSL TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA * @run main/othervm SSL TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5 */ import java.io.*; - import java.net.InetAddress; - import java.security.AccessControlException; import java.security.Permission; import javax.net.ssl.*; import java.security.Principal; import java.util.Date; import java.util.List; import java.util.ArrayList; import java.util.Locale; import javax.security.auth.kerberos.ServicePermission; --- 37,50 ---- * @run main/othervm SSL TLS_KRB5_EXPORT_WITH_RC4_40_MD5 * @run main/othervm SSL TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA * @run main/othervm SSL TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5 */ import java.io.*; import java.security.Permission; import javax.net.ssl.*; import java.security.Principal; + import java.security.Security; import java.util.Date; import java.util.List; import java.util.ArrayList; import java.util.Locale; import javax.security.auth.kerberos.ServicePermission;
*** 80,89 **** --- 79,91 ---- ServicePermission p = (ServicePermission)perm; permChecks = permChecks + p.getActions().toUpperCase().charAt(0); } public static void main(String[] args) throws Exception { + // reset the security property to make sure that the algorithms + // and keys used in this test are not disabled. + Security.setProperty("jdk.tls.disabledAlgorithms", ""); krb5Cipher = args[0]; boolean unbound = args.length > 1;