< prev index next >

## src/java.base/share/classes/java/security/KeyPair.java

Print this page

    *** 1,7 ***
      /*
    !  * Copyright (c) 1996, 2020, 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) 1996, 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

    *** 42,11 ***
    --- 42,19 ---
      public final class KeyPair implements java.io.Serializable {

          @java.io.Serial
          private static final long serialVersionUID = -7565189502268009837L;

    +     /**
    +      * The private key
    +      */
          private PrivateKey privateKey;
    +
    +     /**
    +      *
    +      * The public key
    +      */
          private PublicKey publicKey;

          /**
           * Constructs a key pair from the given public key and private key.
           *

< prev index next >