class DynamoDBSSHRecordStoreFactory implements SSHRecordStoreFactory {

    @Override
    public SSHRecordStore create(PrivateKeyStore keyStore) {

        final String tableName = System.getProperty(ZTSConsts.ZTS_PROP_SSH_DYNAMODB_TABLE_NAME);
        if (tableName == null || tableName.isEmpty()) {
            LOGGER.error("SSH Store DynamoDB table name not specified");
            throw new ResourceException(ResourceException.SERVICE_UNAVAILABLE, "DynamoDB ssh table name not specified");
        }

        ZTSClientNotificationSenderImpl ztsClientNotificationSender = new ZTSClientNotificationSenderImpl();
        AmazonDynamoDB client = getDynamoDBClient(ztsClientNotificationSender, keyStore);
        return new DynamoDBSSHRecordStore(client, tableName, ztsClientNotificationSender);
    }

}