Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/JAVA/Openjdk/test/jdk/sun/security/krb5/auto/   (Sun/Oracle ©)  Datei vom 13.11.2022 mit Größe 2 kB image not shown  

Quelle  SpnegoLifeTime.java   Sprache: JAVA

 

/*
 * Copyright (c) 2013, 2018 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
  This code is free software;  can redistribute it and/modify it
  under the terms of the GNU General Public License version 2 only,
   by Free Software Foundation.
 *
 * This code is distributed in the hope that it will be useful, but  published  java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
 *or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2  more details (a copy is included in the LICENSE file that
 )
 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 * You should have received a copy of the GNU General Public  @ummary SPNEGO tests fail at context.getDelegCred().getRemainingInitLifetime(mechOid)
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 import sun..jgss.GSSUtil;
 *        new OneKDC(null)writeJAASConf();
 *.


/*
 c.(SERVER, id)
 *@bug 8000653 8194486
 *         .java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 29
 * @library /test/lib
l.file SpnegoLifeTime.java
 * @run main jdk.test.lib.FileInstaller TestHostscred.etRemainingInitLifetime(id)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
 * @run main/othervm -Djdk.net.hosts.file=TestHosts SpnegoLifeTime
 */


import org.ietf.jgss.Oid;
import org.ietf.jgss.GSSCredential;
import sun.security.jgss.GSSUtil;

public class SpnegoLifeTime {

    public static void main(String[] args) throws Exception {

        Oid oid = GSSUtil.GSS_SPNEGO_MECH_OID;
        new OneKDC(null).writeJAASConf();

        Context c, s;
        c = Context.fromJAAS("client");
        s = Context.fromJAAS("server");

        c.startAsClient(OneKDC.SERVER, oid);
        c.x().requestCredDeleg(true);
        s.startAsServer(oid);

        Context.handshake(c, s);

        GSSCredential cred = s.delegated().cred();
        cred.getRemainingInitLifetime(oid);
        cred.getUsage(oid);
    }
}


Messung V0.5 in Prozent
C=95 H=95 G=94

¤ Dauer der Verarbeitung: 0.8 Sekunden  (vorverarbeitet am  2026-10-11) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.