Categories:
Audio (13)
Biotech (29)
Bytecode (35)
Database (77)
Framework (7)
Game (7)
General (512)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (86)
JavaBeans (16)
JDBC (89)
JDK (337)
JSP (20)
Logging (103)
Mail (54)
Messaging (8)
Network (71)
PDF (94)
Report (7)
Scripting (83)
Security (32)
Server (119)
Servlet (17)
SOAP (24)
Testing (50)
Web (19)
XML (301)
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/net/www/protocol/http/spnego/NegotiateCallbackHandler.java
/* * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.net.www.protocol.http.spnego; import java.io.IOException; import java.net.Authenticator; import java.net.PasswordAuthentication; import java.util.Arrays; import javax.security.auth.callback.Callback; import javax.security.auth.callback.CallbackHandler; import javax.security.auth.callback.NameCallback; import javax.security.auth.callback.PasswordCallback; import javax.security.auth.callback.UnsupportedCallbackException; import sun.net.www.protocol.http.HttpCallerInfo; import sun.security.jgss.LoginConfigImpl; /** * @since 1.6 * Special callback handler used in JGSS for the HttpCaller. */ public class NegotiateCallbackHandler implements CallbackHandler { private String username; private char[] password; /** * Authenticator asks for username and password in a single prompt, * but CallbackHandler checks one by one. So, no matter which callback * gets handled first, make sure Authenticator is only called once. */ private boolean answered; private final HttpCallerInfo hci; public NegotiateCallbackHandler(HttpCallerInfo hci) { this.hci = hci; } private void getAnswer() { if (!answered) { answered = true; Authenticator auth; if (hci.authenticator != null) { auth = hci.authenticator; } else { auth = LoginConfigImpl.HTTP_USE_GLOBAL_CREDS ? Authenticator.getDefault() : null; } if (auth != null) { PasswordAuthentication passAuth = auth.requestPasswordAuthenticationInstance( hci.host, hci.addr, hci.port, hci.protocol, hci.prompt, hci.scheme, hci.url, hci.authType); /** * To be compatible with existing callback handler implementations, * when the underlying Authenticator is canceled, username and * password are assigned null. No exception is thrown. */ if (passAuth != null) { username = passAuth.getUserName(); password = passAuth.getPassword(); } } } } public void handle(Callback[] callbacks) throws UnsupportedCallbackException, IOException { for (int i=0; i<callbacks.length; i++) { Callback callBack = callbacks[i]; if (callBack instanceof NameCallback) { getAnswer(); ((NameCallback)callBack).setName(username); } else if (callBack instanceof PasswordCallback) { getAnswer(); ((PasswordCallback)callBack).setPassword(password); if (password != null) Arrays.fill(password, ' '); } else { throw new UnsupportedCallbackException(callBack, "Call back not supported"); } } } }
⏎ sun/net/www/protocol/http/spnego/NegotiateCallbackHandler.java
Â
⇒ JDK 11 java.security.sasl.jmod - Security SASL Module
2020-09-15, 18730👍, 0💬
Popular Posts:
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
JDK 11 jdk.jlink.jmod is the JMOD file for JDK 11 JLink tool, which can be invoked by the "jlink" co...
JDK 11 jdk.internal.vm.ci.jmod is the JMOD file for JDK 11 Internal VM CI module. JDK 11 Internal VM...
Apache BCEL Source Code Files are inside the Apache Ant source package file like bcel-6.5.0-src.zip....
Woodstox, Release 3.2.8 is a high-performance validating namespace-aware StAX-compliant (JSR-173) Op...