May 1998
Intermediate to advanced
469 pages
14h 57m
English
Class javax.crypto.SecretKeyFactory
A secret key factory is used to convert between secret key data
formats; like a key factory, this is typically used to import a key
based on its external format or to export a key to its encoded format
or algorithm parameters. Instances of this class are obtained by
calling the getInstance() method. Keys may be
exported by using the translateKey() method;
they are imported by using the generate Secret()
method.
public class javax.crypto.SecretKeyFactory
extends java.lang.Object {
// Constructors
protected SecretKeyFactory(SecretKeyFactorySpi, Provider);
// Class Methods
public static final SecretKeyFactory getInstance(String);
public static final SecretKeyFactory getInstance(String, String);
// Instance Methods
public final SecretKey generateSecret(KeySpec);
public final KeySpec getKeySpec(SecretKey, Class);
public final Provider getProvider();
public final SecretKey translateKey(SecretKey);
}
KeySpec, Provider, SecretKey, SecretKeyFactorySpi