|
|||||||||
| 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.rc2.RC2KeyFactory
This class implementes the RC2 key factory. It is used to convert RC2 keys between different formats.
| Constructor Summary | |
RC2KeyFactory()
|
|
| Method Summary | |
SecretKey |
generateSecret(KeySpec keySpec)
Generate an RC2 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)
Translate an RC2 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 RC2KeyFactory()
| Method Detail |
public SecretKey generateSecret(KeySpec keySpec)
throws InvalidKeySpecException
SecretKeySpec of type
"RC2".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 RC2Key.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
RC2Key is supported as source format.translateKey in class SecretKeyFactorykey - the source keyInvalidKeyException - if the given key is not an instance of RC2Key
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||