Categories:
Audio (13)
Biotech (29)
Bytecode (22)
Database (79)
Framework (7)
Game (7)
General (497)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (70)
JavaBeans (16)
JDBC (86)
JDK (338)
JSP (20)
Logging (90)
Mail (54)
Messaging (8)
Network (106)
PDF (82)
Report (7)
Scripting (75)
Security (67)
Server (112)
Servlet (17)
SOAP (24)
Testing (55)
Web (24)
XML (287)
Other Resources:
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/krb5/AcceptSecContextToken.java
/* * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.security.jgss.krb5; import org.ietf.jgss.*; import java.io.InputStream; import java.io.IOException; import java.security.AccessController; import sun.security.action.GetBooleanAction; import sun.security.krb5.*; class AcceptSecContextToken extends InitialToken { private KrbApRep apRep = null; /** * Creates an AcceptSecContextToken for the context acceptor to send to * the context initiator. */ public AcceptSecContextToken(Krb5Context context, KrbApReq apReq) throws KrbException, IOException, GSSException { boolean useSubkey = AccessController.doPrivileged( new GetBooleanAction("sun.security.krb5.acceptor.subkey")); boolean useSequenceNumber = true; EncryptionKey subKey = null; if (useSubkey) { subKey = new EncryptionKey(apReq.getCreds().getSessionKey()); context.setKey(Krb5Context.ACCEPTOR_SUBKEY, subKey); } apRep = new KrbApRep(apReq, useSequenceNumber, subKey); context.resetMySequenceNumber(apRep.getSeqNumber().intValue()); /* * Note: The acceptor side context key was set when the * InitSecContextToken was received. */ } /** * Creates an AcceptSecContextToken at the context initiator's side * using the bytes received from the acceptor. */ public AcceptSecContextToken(Krb5Context context, Credentials serviceCreds, KrbApReq apReq, InputStream is) throws IOException, GSSException, KrbException { int tokenId = ((is.read()<<8) | is.read()); if (tokenId != Krb5Token.AP_REP_ID) throw new GSSException(GSSException.DEFECTIVE_TOKEN, -1, "AP_REP token id does not match!"); byte[] apRepBytes = new sun.security.util.DerValue(is).toByteArray(); KrbApRep apRep = new KrbApRep(apRepBytes, serviceCreds, apReq); /* * Allow the context acceptor to set a subkey if desired, even * though our context acceptor will not do so. */ EncryptionKey subKey = apRep.getSubKey(); if (subKey != null) { context.setKey(Krb5Context.ACCEPTOR_SUBKEY, subKey); /* System.out.println("\n\nSub-Session key from AP-REP is: " + getHexBytes(subKey.getBytes()) + "\n"); */ } Integer apRepSeqNumber = apRep.getSeqNumber(); int peerSeqNumber = (apRepSeqNumber != null ? apRepSeqNumber.intValue() : 0); context.resetPeerSequenceNumber(peerSeqNumber); } public final byte[] encode() throws IOException { byte[] apRepBytes = apRep.getMessage(); byte[] retVal = new byte[2 + apRepBytes.length]; writeInt(Krb5Token.AP_REP_ID, retVal, 0); System.arraycopy(apRepBytes, 0, retVal, 2, apRepBytes.length); return retVal; } }
⏎ sun/security/jgss/krb5/AcceptSecContextToken.java
⇒ JDK 11 java.security.sasl.jmod - Security SASL Module
2020-09-15, 9142👍, 0💬
Popular Posts:
JRE 8 deploy.jar is the JAR file for JRE 8 Java Control Panel and other deploy tools. JRE (Java Runt...
What Is xml-apis.jar in xml-commons External 1.4.01? xml-apis.jar in xml-commons External 1.4.01 is ...
How to run "jarsigner" command from JDK tools.jar file? "jarsigner" command allows you to digitally ...
JAX-WS is an API for building web services and clients. It is the next generation Web Services API r...
The goal of the Geronimo project is to produce a server runtime framework that pulls together the be...