Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 java.security.sasl.jmod - Security SASL Module
JDK 11 java.security.sasl.jmod is the JMOD file for JDK 11 Security SASL (Simple Authentication and Security Layer) module.
JDK 11 Security SASL module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.security.sasl.jmod.
JDK 11 Security SASL module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Security SASL module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.security.sasl.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/security/sasl/ExternalClient.java
/* * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.security.sasl; import javax.security.sasl.*; /** * Implements the EXTERNAL SASL client mechanism. * (<A HREF="http://www.ietf.org/rfc/rfc2222.txt">RFC 2222</A>). * The EXTERNAL mechanism returns the optional authorization ID as * the initial response. It processes no challenges. * * @author Rosanna Lee */ final class ExternalClient implements SaslClient { private byte[] username; private boolean completed = false; /** * Constructs an External mechanism with optional authorization ID. * * @param authorizationID If non-null, used to specify authorization ID. * @throws SaslException if cannot convert authorizationID into UTF-8 * representation. */ ExternalClient(String authorizationID) throws SaslException { if (authorizationID != null) { try { username = authorizationID.getBytes("UTF8"); } catch (java.io.UnsupportedEncodingException e) { throw new SaslException("Cannot convert " + authorizationID + " into UTF-8", e); } } else { username = new byte[0]; } } /** * Retrieves this mechanism's name for initiating the "EXTERNAL" protocol * exchange. * * @return The string "EXTERNAL". */ public String getMechanismName() { return "EXTERNAL"; } /** * This mechanism has an initial response. */ public boolean hasInitialResponse() { return true; } public void dispose() throws SaslException { } /** * Processes the challenge data. * It returns the EXTERNAL mechanism's initial response, * which is the authorization id encoded in UTF-8. * This is the optional information that is sent along with the SASL command. * After this method is called, isComplete() returns true. * * @param challengeData Ignored. * @return The possible empty initial response. * @throws SaslException If authentication has already been called. */ public byte[] evaluateChallenge(byte[] challengeData) throws SaslException { if (completed) { throw new IllegalStateException( "EXTERNAL authentication already completed"); } completed = true; return username; } /** * Returns whether this mechanism is complete. * @return true if initial response has been sent; false otherwise. */ public boolean isComplete() { return completed; } /** * Unwraps the incoming buffer. * * @throws SaslException Not applicable to this mechanism. */ public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException { if (completed) { throw new SaslException("EXTERNAL has no supported QOP"); } else { throw new IllegalStateException( "EXTERNAL authentication Not completed"); } } /** * Wraps the outgoing buffer. * * @throws SaslException Not applicable to this mechanism. */ public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException { if (completed) { throw new SaslException("EXTERNAL has no supported QOP"); } else { throw new IllegalStateException( "EXTERNAL authentication not completed"); } } /** * Retrieves the negotiated property. * This method can be called only after the authentication exchange has * completed (i.e., when {@code isComplete()} returns true); * otherwise, an {@code IllegalStateException} is thrown. * * @return null No property is applicable to this mechanism. * @exception IllegalStateException if this authentication exchange * has not completed */ public Object getNegotiatedProperty(String propName) { if (completed) { return null; } else { throw new IllegalStateException( "EXTERNAL authentication not completed"); } } }
⏎ com/sun/security/sasl/ExternalClient.java
Or download all of them as a single archive file:
File name: java.security.sasl-11.0.1-src.zip File size: 76634 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.smartcardio.jmod - Smart Card IO Module
2020-09-15, 12861👍, 0💬
Popular Posts:
commons-collections4-4.4 -sources.jaris the source JAR file for Apache Commons Collections 4.2, whic...
Apache Log4j 1.2 Bridge allows applications coded to use Log4j 1.2 API to use Log4j 2 instead. Bytec...
Apache ZooKeeper is an open-source server which enables highly reliable distributed coordination. Ap...
JDK 11 jdk.charsets.jmod is the JMOD file for JDK 11 Charsets module. JDK 11 Charsets module compile...
What Is in Xerces-J-bin.2.12.2.zip? Xerces-J-bin.2.12.2.zip file is the distribution package ZIP fil...