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.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
⏎ javax/security/auth/kerberos/KerberosCredMessage.java
/* * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.security.auth.kerberos; import javax.security.auth.Destroyable; import java.util.Arrays; import java.util.Base64; import java.util.Objects; /** * This class encapsulates a Kerberos 5 KRB_CRED message which can be used to * send Kerberos credentials from one principal to another.<p> * * A KRB_CRED message is defined in Section 5.8.1 of the Kerberos Protocol * Specification (<a href=http://www.ietf.org/rfc/rfc4120.txt>RFC 4120</a>) as: * <pre> * KRB-CRED ::= [APPLICATION 22] SEQUENCE { * pvno [0] INTEGER (5), * msg-type [1] INTEGER (22), * tickets [2] SEQUENCE OF Ticket, * enc-part [3] EncryptedData -- EncKrbCredPart * } * </pre> * * @since 9 */ public final class KerberosCredMessage implements Destroyable { final private KerberosPrincipal sender; final private KerberosPrincipal recipient; final private byte[] message; private boolean destroyed = false; /** * Constructs a {@code KerberosCredMessage} object. * <p> * The contents of the {@code message} argument are copied; subsequent * modification of the byte array does not affect the newly created object. * * @param sender the sender of the message * @param recipient the recipient of the message * @param message the DER encoded KRB_CRED message * @throws NullPointerException if any of sender, recipient * or message is null */ public KerberosCredMessage(KerberosPrincipal sender, KerberosPrincipal recipient, byte[] message) { this.sender = Objects.requireNonNull(sender); this.recipient = Objects.requireNonNull(recipient); this.message = Objects.requireNonNull(message).clone(); } /** * Returns the DER encoded form of the KRB_CRED message. * * @return a newly allocated byte array that contains the encoded form * @throws IllegalStateException if the object is destroyed */ public byte[] getEncoded() { if (destroyed) { throw new IllegalStateException("This object is no longer valid"); } return message.clone(); } /** * Returns the sender of this message. * * @return the sender * @throws IllegalStateException if the object is destroyed */ public KerberosPrincipal getSender() { if (destroyed) { throw new IllegalStateException("This object is no longer valid"); } return sender; } /** * Returns the recipient of this message. * * @return the recipient * @throws IllegalStateException if the object is destroyed */ public KerberosPrincipal getRecipient() { if (destroyed) { throw new IllegalStateException("This object is no longer valid"); } return recipient; } /** * Destroys this object by clearing out the message. */ @Override public void destroy() { if (!destroyed) { Arrays.fill(message, (byte)0); destroyed = true; } } @Override public boolean isDestroyed() { return destroyed; } /** * Returns an informative textual representation of this {@code KerberosCredMessage}. * * @return an informative textual representation of this {@code KerberosCredMessage}. */ @Override public String toString() { if (destroyed) { return "Destroyed KerberosCredMessage"; } else { return "KRB_CRED from " + sender + " to " + recipient + ":\n" + Base64.getUrlEncoder().encodeToString(message); } } /** * Returns a hash code for this {@code KerberosCredMessage}. * * @return a hash code for this {@code KerberosCredMessage}. */ @Override public int hashCode() { if (isDestroyed()) { return -1; } else { return Objects.hash(sender, recipient, Arrays.hashCode(message)); } } /** * Compares the specified object with this {@code KerberosCredMessage} * for equality. Returns true if the given object is also a * {@code KerberosCredMessage} and the two {@code KerberosCredMessage} * instances are equivalent. More formally two {@code KerberosCredMessage} * instances are equal if they have equal sender, recipient, and encoded * KRB_CRED messages. * A destroyed {@code KerberosCredMessage} object is only equal to itself. * * @param other the object to compare to * @return true if the specified object is equal to this * {@code KerberosCredMessage}, false otherwise. */ @Override public boolean equals(Object other) { if (other == this) { return true; } if (! (other instanceof KerberosCredMessage)) { return false; } KerberosCredMessage otherMessage = ((KerberosCredMessage) other); if (isDestroyed() || otherMessage.isDestroyed()) { return false; } return Objects.equals(sender, otherMessage.sender) && Objects.equals(recipient, otherMessage.recipient) && Arrays.equals(message, otherMessage.message); } }
⏎ javax/security/auth/kerberos/KerberosCredMessage.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
2020-09-15, 28808👍, 0💬
Popular Posts:
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
How to download and install Apache XMLBeans-2.6.0.zip? If you want to try the XMLBeans Java library,...
JDK 11 jdk.scripting.nashorn.jm odis the JMOD file for JDK 11 Scripting Nashorn module. JDK 11 Scrip...
How to download and install JDK (Java Development Kit) 1.3? If you want to write Java applications, ...
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...