|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.crypto.SecretKeyFactorySpi
|
+--de.flexiprovider.api.keys.SecretKeyFactory
|
+--de.flexiprovider.core.idea.IDEAKeyFactory
This class is used to convert between IDEA key objects and KeySpec (IDEAKeySpec).
| Constructor Summary | |
IDEAKeyFactory()
|
|
| Method Summary | |
SecretKey |
generateSecret(KeySpec keySpec)
Generate a IDEA key object from the provided key specification. |
KeySpec |
getKeySpec(SecretKey key,
java.lang.Class keySpec)
Return a key specification of the given key object in the requested format. |
SecretKey |
translateKey(SecretKey key)
Translates an IDEA key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory. |
| Methods inherited from class de.flexiprovider.api.keys.SecretKeyFactory |
engineGenerateSecret, engineGetKeySpec, engineTranslateKey |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public IDEAKeyFactory()
| Method Detail |
public SecretKey generateSecret(KeySpec keySpec)
throws InvalidKeySpecException
SecretKeySpec of type
"IDEA".generateSecret in class SecretKeyFactorykeySpec - the key specificationInvalidKeySpecException - if the key specification is of the wrong type.
public KeySpec getKeySpec(SecretKey key,
java.lang.Class keySpec)
throws InvalidKeySpecException
SecretKeySpec. The key has to be an instance of IDEAKey.getKeySpec in class SecretKeyFactorykey - the keykeySpec - the requested format in which the key material shall be
returnedInvalidKeySpecException - if the requested key specification is inappropriate for the
given key, or the given key cannot be dealt with (e.g., the
given key has an unrecognized format).
public SecretKey translateKey(SecretKey key)
throws InvalidKeyException
translateKey in class SecretKeyFactorykey - - the key whose provider is unknown or untrustedInvalidKeyException - if the given key cannot be processed by this key factory.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||