jdk/src/share/classes/javax/security/auth/kerberos/KerberosTicket.java
changeset 18830 90956ead732f
parent 5506 202f599c92aa
child 24969 afa6934dd8e8
equal deleted inserted replaced
18829:ec84f0c313b0 18830:90956ead732f
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   101      */
   101      */
   102 
   102 
   103     private byte[] asn1Encoding;
   103     private byte[] asn1Encoding;
   104 
   104 
   105     /**
   105     /**
   106      *<code>KeyImpl</code> is serialized by writing out the ASN1 Encoded bytes
   106      *{@code KeyImpl} is serialized by writing out the ASN1 Encoded bytes
   107      * of the encryption key. The ASN1 encoding is defined in RFC4120 and as
   107      * of the encryption key. The ASN1 encoding is defined in RFC4120 and as
   108      * follows:
   108      * follows:
   109      * <pre>
   109      * <pre>
   110      * EncryptionKey   ::= SEQUENCE {
   110      * EncryptionKey   ::= SEQUENCE {
   111      *          keytype    [0] Int32 -- actually encryption type --,
   111      *          keytype    [0] Int32 -- actually encryption type --,
   665     }
   665     }
   666 
   666 
   667     /**
   667     /**
   668      * Returns a hashcode for this KerberosTicket.
   668      * Returns a hashcode for this KerberosTicket.
   669      *
   669      *
   670      * @return a hashCode() for the <code>KerberosTicket</code>
   670      * @return a hashCode() for the {@code KerberosTicket}
   671      * @since 1.6
   671      * @since 1.6
   672      */
   672      */
   673     public int hashCode() {
   673     public int hashCode() {
   674         int result = 17;
   674         int result = 17;
   675         if (isDestroyed()) {
   675         if (isDestroyed()) {
   702     }
   702     }
   703 
   703 
   704     /**
   704     /**
   705      * Compares the specified Object with this KerberosTicket for equality.
   705      * Compares the specified Object with this KerberosTicket for equality.
   706      * Returns true if the given object is also a
   706      * Returns true if the given object is also a
   707      * <code>KerberosTicket</code> and the two
   707      * {@code KerberosTicket} and the two
   708      * <code>KerberosTicket</code> instances are equivalent.
   708      * {@code KerberosTicket} instances are equivalent.
   709      *
   709      *
   710      * @param other the Object to compare to
   710      * @param other the Object to compare to
   711      * @return true if the specified object is equal to this KerberosTicket,
   711      * @return true if the specified object is equal to this KerberosTicket,
   712      * false otherwise. NOTE: Returns false if either of the KerberosTicket
   712      * false otherwise. NOTE: Returns false if either of the KerberosTicket
   713      * objects has been destroyed.
   713      * objects has been destroyed.