|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--javax.crypto.SecretKeyFactorySpi
Service Provider Interface (SPI) for the SecretKeyFactory class. Attention: This is not a SUN implementation!
This class has been developed by IAIK according to the documentation publically available.
For SUNīs documentation of this class see
http://java.sun.com/security/JCE1.2/spec/apidoc/index.html
This SPI class has to be implemented by a provider for each symmetric algorithm it wishes to provide a seceret key factory for converting keys from opaque into transparent representation and vice versa.
The corresponding API class actually used by an application for secret key/specification
conversion is the javax.crypto.SecretKeyFactory class.
SecretKeyFactory| Constructor Summary | |
SecretKeyFactorySpi()
Default Constructor. |
|
| Method Summary | |
protected abstract SecretKey |
engineGenerateSecret(KeySpec keySpec)
Converts the given key specification (key material) into a SecretKey object. |
protected abstract KeySpec |
engineGetKeySpec(SecretKey key,
java.lang.Class keySpec)
Converts the given secret key into the requested key specification (key material). |
protected abstract SecretKey |
engineTranslateKey(SecretKey key)
Translates a key object of some unknown or untrusted provider into a secret key object of this key factory. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public SecretKeyFactorySpi()
| Method Detail |
protected abstract SecretKey engineGenerateSecret(KeySpec keySpec)
throws InvalidKeySpecException
keySpec - the specification (key material) to be converted into SecretKey representation.SecretKeyFactory.generateSecret(java.security.spec.KeySpec)
protected abstract KeySpec engineGetKeySpec(SecretKey key,
java.lang.Class keySpec)
throws InvalidKeySpecException
key - the secret key to be converted.keySpec - the key specification type into which the secret key shall be convertedSecretKeyFactory.getKeySpec(javax.crypto.SecretKey, java.lang.Class)
protected abstract SecretKey engineTranslateKey(SecretKey key)
throws InvalidKeyException
key - the key of some unknown or untrusted providerSecretKeyFactory.translateKey(javax.crypto.SecretKey)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||