This method generates a DSAPrivateKey object from the provided key specification.
Parameters: keySpec - - the specification (key material) for the DSAPrivateKey.a DSAPrivateKey object throws: InvalidKeySpecException - if "keySpec" is neither DSAPrivateKeySpec nor PKCS8EncodedKeySpec
This method generates a DSAPublicKey object from the provided key specification.
Parameters: keySpec - - the specification (key material) for the DSAPublicKey.a DSAPublicKey object throws: InvalidKeySpecException - if "keySpec" is neither DSAPublicKeySpec nor X509EncodedKeySpec
This method returns a specification for the supplied key.
The specification will be returned in the form of an object of the type
specified by keySpec.
Parameters: key - -either DSAPrivateKey or DSAPublicKey Parameters: keySpec - -either DSAPrivateKeySpec.class or DSAPublicKeySpec.class either a DSAPrivateKeySpec or a DSAPublicKeySpec throws: InvalidKeySpecException - if "keySpec" is not a specification for DSAPublicKey orDSAPrivateKey
The method generates a DSAPublicKey object from the provided key.
Parameters: key - - a DSAPublicKey object or DSAPrivateKey object.object of the same type as the "key" argument throws: InvalidKeyException - if "key" is neither DSAPublicKey nor DSAPrivateKey
Methods inherited from java.security.KeyFactorySpi