May 2001
Intermediate to advanced
618 pages
20h 50m
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 String getAlgorithm( );
public final Provider getProvider( );
public final SecretKey translateKey(SecretKey);
}
KeySpec, Provider, SecretKey, SecretKeyFactorySpi
|
Read now
Unlock full access