Methods Summary |
---|
public java.security.KeyPair | generateKeyPair()
try {
return new KeyPair(new PubKey(), new PrivKey());
} catch (Exception e) {
e.printStackTrace();
return null;
}
|
public java.lang.String | getAlgorithm()
return "MyKeyPairGenerator1";
|
public static final java.lang.String | getResAlgorithm()
return "MyKeyPairGenerator1";
|
public void | initialize(int keysize, java.security.SecureRandom random)
if ((keysize < 0) || ((keysize % 100) != 0)) {
throw new InvalidParameterException("Incorrect keysize parameter");
}
if (random == null) {
throw new InvalidParameterException("Incorrect random");
}
keySize = keysize;
secureRandom = random;
|
public void | initialize(java.security.spec.AlgorithmParameterSpec param, java.security.SecureRandom random)
if (random == null) {
throw new InvalidParameterException("Incorrect random");
}
if (param == null) {
throw new InvalidAlgorithmParameterException("Incorrect param");
}
paramSpec = param;
secureRandom = random;
|