DSAKeyPairGenerator


DSAKeyPairGenerator java.security.interfaces

Java 1.1

This interface defines algorithm-specific KeyPairGenerator initialization methods for DSA keys. To generate a pair of DSA keys, use the static getInstance( ) factory method of java.security.KeyPairGenerator and specify "DSA" as the desired algorithm name . If you wish to perform DSA-specific initialization, cast the returned KeyPairGenerator to a DSAKeyPairGenerator and call one of the initialize( ) methods defined by this interface. Finally, generate the keys by calling generateKeyPair( ) on the KeyPairGenerator .

 public interface  DSAKeyPairGenerator  {  // Public Instance Methods  void  initialize  (DSAParams  params  , java.security.SecureRandom  random  )          throws java.security.InvalidParameterException;        void  initialize  (int  modlen  , boolean  genParams  ,          java.security.SecureRandom  random  )          throws java.security.InvalidParameterException;   } 



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net