1 |
/* KeyPairGeneratorSpi.java --- Key Pair Generator SPI Class |
/* KeyPairGeneratorSpi.java --- Key Pair Generator SPI Class |
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 |
|
|
90 |
@return a key pair |
@return a key pair |
91 |
*/ |
*/ |
92 |
public abstract KeyPair generateKeyPair(); |
public abstract KeyPair generateKeyPair(); |
93 |
|
|
94 |
|
/** |
95 |
|
Returns a clone of this class. |
96 |
|
|
97 |
|
If cloning is not supported, then by default the class throws a |
98 |
|
CloneNotSupportedException. The MessageDigestSpi provider |
99 |
|
implementation has to overload this class in order to be |
100 |
|
cloneable. |
101 |
|
*/ |
102 |
|
public Object clone() throws CloneNotSupportedException |
103 |
|
{ |
104 |
|
if (this instanceof Cloneable) |
105 |
|
return super.clone(); |
106 |
|
else |
107 |
|
throw new CloneNotSupportedException(); |
108 |
|
} |
109 |
} |
} |