equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 2018, 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 0, cipher.length); |
101 0, cipher.length); |
102 } |
102 } |
103 return new_encryptedData; |
103 return new_encryptedData; |
104 } |
104 } |
105 |
105 |
106 // Used in JSSE (com.sun.net.ssl.internal.KerberosPreMasterSecret) |
106 // Used by test |
107 public EncryptedData( |
107 public EncryptedData( |
108 int new_eType, |
108 int new_eType, |
109 Integer new_kvno, |
109 Integer new_kvno, |
110 byte[] new_cipher) { |
110 byte[] new_cipher) { |
111 eType = new_eType; |
111 eType = new_eType; |
124 eType = key.getEType(); |
124 eType = key.getEType(); |
125 kvno = key.getKeyVersionNumber(); |
125 kvno = key.getKeyVersionNumber(); |
126 } |
126 } |
127 */ |
127 */ |
128 |
128 |
129 // used in KrbApRep, KrbApReq, KrbAsReq, KrbCred, KrbPriv |
129 // used in KrbApRep, KrbApReq, KrbAsReq, KrbCred, KrbPriv |
130 // Used in JSSE (com.sun.net.ssl.internal.KerberosPreMasterSecret) |
|
131 public EncryptedData( |
130 public EncryptedData( |
132 EncryptionKey key, |
131 EncryptionKey key, |
133 byte[] plaintext, |
132 byte[] plaintext, |
134 int usage) |
133 int usage) |
135 throws KdcErrException, KrbCryptoException { |
134 throws KdcErrException, KrbCryptoException { |