equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 2019, 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 |
216 * Constructs an EncryptionKey by using the specified key type and key |
216 * Constructs an EncryptionKey by using the specified key type and key |
217 * value. It is used to recover the key when retrieving data from |
217 * value. It is used to recover the key when retrieving data from |
218 * credential cache file. |
218 * credential cache file. |
219 * |
219 * |
220 */ |
220 */ |
221 // Used in JSSE (KerberosWrapper), Credentials, |
221 // Used in Credentials, and javax.security.auth.kerberos.KeyImpl |
222 // javax.security.auth.kerberos.KeyImpl |
222 // Warning: called by NativeCreds.c and nativeccache.c |
223 public EncryptionKey(int keyType, |
223 public EncryptionKey(int keyType, |
224 byte[] keyValue) { |
224 byte[] keyValue) { |
225 this(keyValue, keyType, null); |
225 this(keyValue, keyType, null); |
226 } |
226 } |
227 |
227 |