/[classpath]/classpath/java/security/DummyKeyPairGenerator.java
ViewVC logotype

Diff of /classpath/java/security/DummyKeyPairGenerator.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by mark, Tue Jan 22 22:27:00 2002 UTC revision 1.5 by mark, Sat Nov 16 23:28:25 2002 UTC
# Line 1  Line 1 
1  /* DummyKeyPairGenerator.java  /* DummyKeyPairGenerator.java - Wrapper for KeyPairGeneratorSpi
2     Copyright (C) 1999 Free Software Foundation, Inc.     Copyright (C) 1999, 2002 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 36  obligated to do so.  If you do not wish Line 36  obligated to do so.  If you do not wish
36  exception statement from your version. */  exception statement from your version. */
37    
38  package java.security;  package java.security;
39    
40  import java.security.spec.AlgorithmParameterSpec;  import java.security.spec.AlgorithmParameterSpec;
41    
42  final class DummyKeyPairGenerator extends KeyPairGenerator  final class DummyKeyPairGenerator extends KeyPairGenerator
# Line 48  final class DummyKeyPairGenerator extend Line 49  final class DummyKeyPairGenerator extend
49      this.kpgSpi = kpgSpi;      this.kpgSpi = kpgSpi;
50    }    }
51    
52      public Object clone() throws CloneNotSupportedException
53      {
54        if (!(kpgSpi instanceof Cloneable))
55          throw new CloneNotSupportedException();
56    
57        KeyPairGenerator result = new DummyKeyPairGenerator
58                ((KeyPairGeneratorSpi) kpgSpi.clone(), this.getAlgorithm());
59        result.provider = this.getProvider();
60        return result;
61      }
62    
63    public void initialize(int keysize, SecureRandom random)    public void initialize(int keysize, SecureRandom random)
64    {    {
65      kpgSpi.initialize(keysize, random);      kpgSpi.initialize(keysize, random);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26