Class au.net.aba.crypto.provider.RC4KeyFactory
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class au.net.aba.crypto.provider.RC4KeyFactory

java.lang.Object
   |
   +----javax.crypto.SecretKeyFactorySpi
           |
           +----au.net.aba.crypto.provider.RC4KeyFactory

public class RC4KeyFactory
extends SecretKeyFactorySpi
This class is used to convert RC4 keys into a format usable by the ABA provider. Currently this class can only convert from a KeySpec into a Key. The supported KeySpec class is RC4KeySpec.

This class should not be instantiated directly, instead use the java.security.KeyFactory interface.

See Also:
KeyFactory

Constructor Index

 o RC4KeyFactory()

Method Index

 o engineGenerateSecret(KeySpec)
Generates a RC4 SecretKey object from the provided key specification (key material).
 o engineGetKeySpec(SecretKey, Class)
Returns a specification (key material) of the given key object in the requested format.
 o engineTranslateKey(SecretKey)
Translates a RC4 key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.

Constructors

 o RC4KeyFactory
  public RC4KeyFactory()

Methods

 o engineGenerateSecret
  protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException
Generates a RC4 SecretKey object from the provided key specification (key material). This class supports the RC4KeySpec KeySpec class.
Returns:
s The secret key.
Throws: InvalidKeySpecException
The provided KeySpec was not a RC4KeySpec KeySpec.
Overrides:
engineGenerateSecret in class SecretKeyFactorySpi
 o engineGetKeySpec
  protected KeySpec engineGetKeySpec(SecretKey key,
                                     Class keySpec) throws InvalidKeySpecException
Returns a specification (key material) of the given key object in the requested format.

Not currently implemented.

Parameters:
key - the key
keySpec - the requested format in which the key material shall be returned
Returns:
s the underlying key specification (key material) in the requested format
Throws: InvalidKeySpecException
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 unrecognised format).
Overrides:
engineGetKeySpec in class SecretKeyFactorySpi
 o engineTranslateKey
  protected SecretKey engineTranslateKey(SecretKey key) throws InvalidKeyException
Translates a RC4 key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.

Not currently implemented.

Parameters:
key - - the key whose provider is unknown or untrusted
Returns:
s the translated key
Throws: InvalidKeyException
if the given key cannot be processed by this key factory.
Overrides:
engineTranslateKey in class SecretKeyFactorySpi

All Packages  Class Hierarchy  This Package  Previous  Next  Index