equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2011, 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 |
86 * whereas <code>keySpec</code> is the specification of a software-based |
86 * whereas <code>keySpec</code> is the specification of a software-based |
87 * key), or the given key cannot be dealt with |
87 * key), or the given key cannot be dealt with |
88 * (e.g., the given key has an algorithm or format not supported by this |
88 * (e.g., the given key has an algorithm or format not supported by this |
89 * secret-key factory). |
89 * secret-key factory). |
90 */ |
90 */ |
91 protected abstract KeySpec engineGetKeySpec(SecretKey key, Class keySpec) |
91 protected abstract KeySpec engineGetKeySpec(SecretKey key, Class<?> keySpec) |
92 throws InvalidKeySpecException; |
92 throws InvalidKeySpecException; |
93 |
93 |
94 /** |
94 /** |
95 * Translates a key object, whose provider may be unknown or |
95 * Translates a key object, whose provider may be unknown or |
96 * potentially untrusted, into a corresponding key object of this |
96 * potentially untrusted, into a corresponding key object of this |