public class SecretKeySpec
  Comment     Returned-by     Constructor-argument     Method-argument     Field-type     Type-bound     Links  

This class specifies a secret key in a provider-independent fashion.

It can be used to construct a SecretKey from a byte array, without having to go through a (provider-based) SecretKeyFactory.

This class is only useful for raw secret keys that can be represented as a byte array and have no key parameters associated with them, e.g., DES or Triple DES keys.

implements KeySpec, SecretKey

See also:
javax.crypto.SecretKey, javax.crypto.SecretKeyFactory

Since:  1.4