public class P11KeypairGenerator extends KeypairGenerator
P11KeypairGenerator.| Modifier and Type | Field and Description |
|---|---|
protected P11CryptServiceFactory |
cryptServiceFactory |
protected P11Slot |
slot |
keyspecs, name, rsaE| Constructor and Description |
|---|
P11KeypairGenerator(P11CryptServiceFactory cryptServiceFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.bouncycastle.asn1.pkcs.PrivateKeyInfo |
generateKeypair(String keyspec)
Generate keypair for the given keyspec as defined in RFC 5958.
|
void |
initialize0(org.xipki.util.ConfPairs conf,
org.xipki.password.PasswordResolver passwordResolver) |
boolean |
isHealthy() |
getName, initialize, setName, supportsprotected final P11CryptServiceFactory cryptServiceFactory
protected P11Slot slot
public P11KeypairGenerator(P11CryptServiceFactory cryptServiceFactory)
public void initialize0(org.xipki.util.ConfPairs conf,
org.xipki.password.PasswordResolver passwordResolver)
throws XiSecurityException
initialize0 in class KeypairGeneratorXiSecurityExceptionpublic org.bouncycastle.asn1.pkcs.PrivateKeyInfo generateKeypair(String keyspec) throws XiSecurityException
KeypairGeneratorgenerateKeypair in class KeypairGeneratorkeyspec - Key specification. It has the following format:
XiSecurityException - if could not generate keypair.public boolean isHealthy()
isHealthy in class KeypairGeneratorpublic void close()
throws IOException
IOExceptionCopyright © 2022. All rights reserved.