4102N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 4102N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4102N/A * This code is free software; you can redistribute it and/or modify it 4102N/A * under the terms of the GNU General Public License version 2 only, as 4102N/A * published by the Free Software Foundation. 4102N/A * This code is distributed in the hope that it will be useful, but WITHOUT 4102N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4102N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4102N/A * version 2 for more details (a copy is included in the LICENSE file that 4102N/A * You should have received a copy of the GNU General Public License version 4102N/A * 2 along with this work; if not, write to the Free Software Foundation, 4102N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4102N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4102N/A * or visit www.oracle.com if you need additional information or have any 4102N/A * @summary always refresh keytab 4102N/A // Test 1: read new key 1 from keytab 4102N/A // Test 2: service key cached, find 1 in keytab (now contains 1 and 2) 4102N/A // Test 3: re-login. Now find 2 in keytab 4102N/A // Test 4: re-login, KDC use 3 this time. 4102N/A // Put 3 and 4 into keytab but keep the real key back to 3. 4102N/A // Test 5: invalid keytab file, should ignore 4102N/A // Test 6: delete keytab file, identical to revoke all 4102N/A // KrbApReq.authenticate(*) if (dkey == null)... 4102N/A // This should have been Krb5.KRB_AP_ERR_NOKEY 4102N/A // Test 7: 3 revoked, should fail (now contains only 5) 4102N/A // Test 8: an empty KDC means revoke all 4102N/A // KrbApReq.authenticate(*) if (dkey == null)... 4102N/A // This should have been Krb5.KRB_AP_ERR_NOKEY