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 8001104 27 * @summary Unbound SASL service: the GSSAPI/krb5 mech 28 * @compile -XDignore.symbol.file SaslUnbound.java 29 * @run main/othervm SaslUnbound 0 30 * @run main/othervm/fail SaslUnbound 1 31 * @run main/othervm/fail SaslUnbound 2 32 * @run main/othervm/fail SaslUnbound 3 33 * @run main/othervm/fail SaslUnbound 4 34 */ 35 import java.io.IOException; 36 import java.util.Arrays; 37 import java.util.HashMap; 38 import javax.security.auth.callback.Callback; 39 import javax.security.auth.callback.CallbackHandler; 40 import javax.security.auth.callback.UnsupportedCallbackException; 41 import javax.security.sasl.*; 42 43 public class SaslUnbound { 44 45 public static void main(String[] args) throws Exception { 46 47 String serverProtocol, serverName; | 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 8001104 27 * @summary Unbound SASL service: the GSSAPI/krb5 mech 28 * @modules java.base/sun.net.spi.nameservice 29 * java.base/sun.security.util 30 * java.security.jgss/sun.security.krb5 31 * java.security.jgss/sun.security.krb5.internal 32 * java.security.jgss/sun.security.krb5.internal.ccache 33 * java.security.jgss/sun.security.krb5.internal.crypto 34 * java.security.jgss/sun.security.krb5.internal.ktab 35 * java.security.sasl 36 * @compile -XDignore.symbol.file SaslUnbound.java 37 * @run main/othervm SaslUnbound 0 38 * @run main/othervm/fail SaslUnbound 1 39 * @run main/othervm/fail SaslUnbound 2 40 * @run main/othervm/fail SaslUnbound 3 41 * @run main/othervm/fail SaslUnbound 4 42 */ 43 import java.io.IOException; 44 import java.util.Arrays; 45 import java.util.HashMap; 46 import javax.security.auth.callback.Callback; 47 import javax.security.auth.callback.CallbackHandler; 48 import javax.security.auth.callback.UnsupportedCallbackException; 49 import javax.security.sasl.*; 50 51 public class SaslUnbound { 52 53 public static void main(String[] args) throws Exception { 54 55 String serverProtocol, serverName; |