public abstract class KeypairGenerator extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
keyspecs |
protected String |
name |
protected BigInteger |
rsaE |
| Constructor and Description |
|---|
KeypairGenerator() |
| Modifier and Type | Method and Description |
|---|---|
abstract org.bouncycastle.asn1.pkcs.PrivateKeyInfo |
generateKeypair(String keyspec)
Generate keypair for the given keyspec as defined in RFC 5958.
|
String |
getName() |
void |
initialize(String conf,
org.xipki.password.PasswordResolver passwordResolver)
Initializes me.
|
protected abstract void |
initialize0(org.xipki.util.ConfPairs conf,
org.xipki.password.PasswordResolver passwordResolver) |
abstract boolean |
isHealthy() |
void |
setName(String name) |
boolean |
supports(String keyspec) |
protected String name
protected BigInteger rsaE
public String getName()
public void setName(String name)
public void initialize(String conf, org.xipki.password.PasswordResolver passwordResolver) throws XiSecurityException
conf - Configuration. Could be null.passwordResolver - Password resolver. Could be null.XiSecurityException - if error during the initialization occurs.protected abstract void initialize0(org.xipki.util.ConfPairs conf,
org.xipki.password.PasswordResolver passwordResolver)
throws XiSecurityException
XiSecurityExceptionpublic boolean supports(String keyspec)
public abstract org.bouncycastle.asn1.pkcs.PrivateKeyInfo generateKeypair(String keyspec) throws XiSecurityException
keyspec - Key specification. It has the following format:
XiSecurityException - if could not generate keypair.public abstract boolean isHealthy()
Copyright © 2023. All rights reserved.