7 * published by the Free Software Foundation. 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 6706974 27 * @compile -XDignore.symbol.file CrossRealm.java 28 * @run main/othervm CrossRealm 29 * @summary Add krb5 test infrastructure 30 */ 31 import java.io.File; 32 import java.io.FileOutputStream; 33 import java.io.IOException; 34 import java.security.Security; 35 import javax.security.auth.callback.Callback; 36 import javax.security.auth.callback.CallbackHandler; 37 import javax.security.auth.callback.NameCallback; 38 import javax.security.auth.callback.PasswordCallback; 39 import javax.security.auth.callback.UnsupportedCallbackException; 40 import org.ietf.jgss.GSSContext; 41 import org.ietf.jgss.GSSManager; 42 import org.ietf.jgss.GSSName; 43 import sun.security.jgss.GSSUtil; 44 45 public class CrossRealm implements CallbackHandler { 46 public static void main(String[] args) throws Exception { | 7 * published by the Free Software Foundation. 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 6706974 27 * @modules java.base/sun.net.spi.nameservice 28 * java.base/sun.security.util 29 * java.security.jgss/sun.security.jgss 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 * @compile -XDignore.symbol.file CrossRealm.java 36 * @run main/othervm CrossRealm 37 * @summary Add krb5 test infrastructure 38 */ 39 import java.io.File; 40 import java.io.FileOutputStream; 41 import java.io.IOException; 42 import java.security.Security; 43 import javax.security.auth.callback.Callback; 44 import javax.security.auth.callback.CallbackHandler; 45 import javax.security.auth.callback.NameCallback; 46 import javax.security.auth.callback.PasswordCallback; 47 import javax.security.auth.callback.UnsupportedCallbackException; 48 import org.ietf.jgss.GSSContext; 49 import org.ietf.jgss.GSSManager; 50 import org.ietf.jgss.GSSName; 51 import sun.security.jgss.GSSUtil; 52 53 public class CrossRealm implements CallbackHandler { 54 public static void main(String[] args) throws Exception { |