< prev index next >

## src/java.security.jgss/share/classes/javax/security/auth/kerberos/KerberosPrincipal.java

Print this page

    *** 1,7 ***
      /*
    !  * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
       * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       *
       * This code is free software; you can redistribute it and/or modify it
       * under the terms of the GNU General Public License version 2 only, as
       * published by the Free Software Foundation.  Oracle designates this
    --- 1,7 ---
      /*
    !  * Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
       * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       *
       * This code is free software; you can redistribute it and/or modify it
       * under the terms of the GNU General Public License version 2 only, as
       * published by the Free Software Foundation.  Oracle designates this

    *** 263,10 ***
    --- 263,13 ---
          }

          /**
           * Save the {@code KerberosPrincipal} object to a stream
           *
    +      * @param  oos the {@code ObjectOutputStream} to which data is written
    +      * @throws IOException if an I/O error occurs
    +      *
           * @serialData this {@code KerberosPrincipal} is serialized
           *          by writing out the PrincipalName and the
           *          Realm in their DER-encoded form as specified in Section 5.2.2 of
           *          <a href=http://www.ietf.org/rfc/rfc4120.txt> RFC4120</a>.
           */

    *** 283,10 ***
    --- 286,14 ---
              }
          }

          /**
           * Reads this object from a stream (i.e., deserializes it)
    +      *
    +      * @param  ois the {@code ObjectInputStream} from which data is read
    +      * @throws IOException if an I/O error occurs
    +      * @throws ClassNotFoundException if a serialized class cannot be loaded
           */
          private void readObject(ObjectInputStream ois)
                  throws IOException, ClassNotFoundException {
              byte[] asn1EncPrincipal = (byte [])ois.readObject();
              byte[] encRealm = (byte [])ois.readObject();

< prev index next >