113 |
* is inappropriate for this key or the key is |
* is inappropriate for this key or the key is |
114 |
* unrecognized. |
* unrecognized. |
115 |
*/ |
*/ |
116 |
protected abstract KeySpec engineGetKeySpec(Key key, Class keySpec) |
protected abstract <T extends KeySpec> T engineGetKeySpec(Key key, |
117 |
|
Class<T> keySpec) |
118 |
throws InvalidKeySpecException; |
throws InvalidKeySpecException; |
119 |
|
|
120 |
|
|
122 |
* Translates the key from an unknown or untrusted provider |
* Translates the key from an unknown or untrusted provider |
123 |
* into a key for this key factory. |
* into a key for this key factory. |
124 |
* |
* |
125 |
* @param the key from an unknown or untrusted provider |
* @param key key from an unknown or untrusted provider |
126 |
* |
* |
127 |
* @return the translated key |
* @return the translated key |
128 |
* |
* |
129 |
* @throws InvalidKeySpecException if the key cannot be |
* @throws InvalidKeyException if the key cannot be |
130 |
* processed by this key factory |
* processed by this key factory |
131 |
*/ |
*/ |
132 |
protected abstract Key engineTranslateKey(Key key) |
protected abstract Key engineTranslateKey(Key key) |