JDK 11 java.security.jgss.jmod - Security JGSS Module

JDK 11 java.security.jgss.jmod is the JMOD file for JDK 11 Security JGSS (Java Generic Security Service) module.

JDK 11 Security JGSS module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.security.jgss.jmod.

JDK 11 Security JGSS module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.

JDK 11 Security JGSS module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.security.jgss.

You can click and view the content of each source code file in the list below.

✍: FYIcenter

sun/security/jgss/JgssExtender.java

/*
 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */

package sun.security.jgss;

import org.ietf.jgss.GSSContext;
import org.ietf.jgss.GSSCredential;

/**
 * The extending point of basic JGSS-API.
 * <p>
 * If a module wants to extend basic JGSS-API classes, it should extends this
 * class and register itself as "the extender" using the setExtender method.
 * When various GSSManager.createXXX methods are called, they will call
 * "the extender"'s wrap methods to create objects of extended types
 * instead of basic types.
 * <p>
 * We have only one extension now defined in com.sun.security.jgss, and the
 * registering process is triggered in {@link GSSManagerImpl} by calling
 * Class.forName("com.sun.security.jgss.Extender"). Only GSSContext
 * and GSSCredential are extended now.
 * <p>
 * The setExtender method should be called before any JGSS call.
 */
public class JgssExtender {

    // "The extender"
    private static volatile JgssExtender theOne = new JgssExtender();

    /**
     * Gets "the extender". GSSManager calls this method so that it can
     * wrap basic objects into extended objects.
     * @return the extender
     */
    public static JgssExtender getExtender() {
        return theOne;
    }

    /**
     * Set "the extender" so that GSSManager can create extended objects.
     */
    protected static void setExtender(JgssExtender theOne) {
        JgssExtender.theOne = theOne;
    }

    /**
     * Wraps a plain GSSCredential object into an extended type.
     */
    public GSSCredential wrap(GSSCredential cred) {
        return cred;
    }

    /**
     * Wraps a plain GSSContext object into an extended type.
     */
    public GSSContext wrap(GSSContext ctxt) {
        return ctxt;
    }
}

sun/security/jgss/JgssExtender.java

 

Or download all of them as a single archive file:

File name: java.security.jgss-11.0.1-src.zip
File size: 216236 bytes
Release date: 2018-11-04
Download 

 

JDK 11 java.security.sasl.jmod - Security SASL Module

JDK 11 java.se.jmod - SE Module

Download and Use JDK 11

⇑⇑ FAQ for JDK (Java Development Kit)

2020-09-15, 26271👍, 0💬