Destroyablepublic final class KerberosCredMessage extends Object implements Destroyable
A KRB_CRED message is defined in Section 5.8.1 of the Kerberos Protocol Specification (RFC 4120) as:
    KRB-CRED        ::= [APPLICATION 22] SEQUENCE {
            pvno            [0] INTEGER (5),
            msg-type        [1] INTEGER (22),
            tickets         [2] SEQUENCE OF Ticket,
            enc-part        [3] EncryptedData -- EncKrbCredPart
    }
 
| Constructor | Description | 
|---|---|
| KerberosCredMessage | Constructs a  KerberosCredMessageobject. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | destroy() | Destroys this object by clearing out the message. | 
| boolean | equals | Compares the specified object with this  KerberosCredMessagefor equality. | 
| byte[] | getEncoded() | Returns the DER encoded form of the KRB_CRED message. | 
| KerberosPrincipal | getRecipient() | Returns the recipient of this message. | 
| KerberosPrincipal | getSender() | Returns the sender of this message. | 
| int | hashCode() | Returns a hash code for this  KerberosCredMessage. | 
| String | toString() | Returns an informative textual representation of this  KerberosCredMessage. | 
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isDestroyed
public KerberosCredMessage(KerberosPrincipal sender, KerberosPrincipal recipient, byte[] message)
KerberosCredMessage object.  The contents of the message argument are copied; subsequent modification of the byte array does not affect the newly created object.
sender - the sender of the messagerecipient - the recipient of the messagemessage - the DER encoded KRB_CRED messageNullPointerException - if any of sender, recipient or message is nullpublic byte[] getEncoded()
IllegalStateException - if the object is destroyedpublic KerberosPrincipal getSender()
IllegalStateException - if the object is destroyedpublic KerberosPrincipal getRecipient()
IllegalStateException - if the object is destroyedpublic void destroy()
destroy in interface Destroyable
public String toString()
KerberosCredMessage.public int hashCode()
KerberosCredMessage.public boolean equals(Object other)
KerberosCredMessage for equality. Returns true if the given object is also a KerberosCredMessage and the two KerberosCredMessage instances are equivalent. More formally two KerberosCredMessage instances are equal if they have equal sender, recipient, and encoded KRB_CRED messages. A destroyed KerberosCredMessage object is only equal to itself.
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.security.jgss/javax/security/auth/kerberos/KerberosCredMessage.html