Class KeypoolKeypairGenerator

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class KeypoolKeypairGenerator
    extends org.xipki.security.KeypairGenerator
    Keypool based keypair generator.
    Since:
    6.0.0
    Author:
    Lijun Liao (xipki)
    • Constructor Detail

      • KeypoolKeypairGenerator

        public KeypoolKeypairGenerator()
    • Method Detail

      • setShardId

        public void setShardId​(int shardId)
      • getShardId

        public int getShardId()
      • setDatasources

        public void setDatasources​(Map<String,​org.xipki.datasource.DataSourceWrapper> datasources)
      • initialize0

        protected void initialize0​(org.xipki.util.ConfPairs conf,
                                   org.xipki.password.PasswordResolver passwordResolver)
                            throws org.xipki.security.XiSecurityException
        Specified by:
        initialize0 in class org.xipki.security.KeypairGenerator
        Throws:
        org.xipki.security.XiSecurityException
      • generateKeypair

        public org.bouncycastle.asn1.pkcs.PrivateKeyInfo generateKeypair​(String keyspec)
                                                                  throws org.xipki.security.XiSecurityException
        Specified by:
        generateKeypair in class org.xipki.security.KeypairGenerator
        Throws:
        org.xipki.security.XiSecurityException
      • isHealthy

        public boolean isHealthy()
        Specified by:
        isHealthy in class org.xipki.security.KeypairGenerator