-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify pki-server ca-range-generator-* to ca-id-generator-*
- Loading branch information
Showing
18 changed files
with
310 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
base/ca/src/main/java/org/dogtagpki/server/ca/cli/CAIdCLI.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// Copyright Red Hat, Inc. | ||
// | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
// | ||
package org.dogtagpki.server.ca.cli; | ||
|
||
import org.dogtagpki.cli.CLI; | ||
|
||
/** | ||
* @author Marco Fargetta {@literal <[email protected]>} | ||
*/ | ||
public class CAIdCLI extends CLI { | ||
public CAIdCLI(CLI parent) { | ||
super("id", "CA id generator management commands", parent); | ||
|
||
addModule(new CAIdGeneratorCLI(this)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,12 +10,12 @@ | |
/** | ||
* @author Marco Fargetta {@literal <[email protected]>} | ||
*/ | ||
public class CARangeGeneratorCLI extends CLI { | ||
public class CAIdGeneratorCLI extends CLI { | ||
|
||
public CARangeGeneratorCLI(CLI parent) { | ||
super("generator", "CA range generator commands", parent); | ||
public CAIdGeneratorCLI(CLI parent) { | ||
super("generator", "CA id generator commands", parent); | ||
|
||
addModule(new CARangeGeneratorUpdateCLI(this)); | ||
addModule(new CAIdGeneratorUpdateCLI(this)); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,26 +5,24 @@ | |
// | ||
package org.dogtagpki.server.ca.cli; | ||
|
||
import com.netscape.certsrv.base.EBaseException; | ||
import com.netscape.cmscore.apps.DatabaseConfig; | ||
import com.netscape.cmscore.dbs.CertificateRepository; | ||
import com.netscape.cmscore.dbs.Repository; | ||
import com.netscape.cmscore.dbs.Repository.IDGenerator; | ||
import com.netscape.cmscore.ldapconn.LdapAuthInfo; | ||
import com.netscape.cmscore.ldapconn.LdapConnInfo; | ||
import com.netscape.cmscore.ldapconn.PKISocketFactory; | ||
import org.dogtagpki.cli.CLI; | ||
import org.dogtagpki.server.cli.SubsystemRangeGeneratorUpdateCLI; | ||
import org.dogtagpki.server.cli.SubsystemIdGeneratorUpdateCLI; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
/** | ||
* @author Marco Fargetta {@literal <[email protected]>} | ||
*/ | ||
public class CARangeGeneratorUpdateCLI extends SubsystemRangeGeneratorUpdateCLI { | ||
private static final Logger logger = LoggerFactory.getLogger(CARangeGeneratorUpdateCLI.class); | ||
public class CAIdGeneratorUpdateCLI extends SubsystemIdGeneratorUpdateCLI { | ||
private static final Logger logger = LoggerFactory.getLogger(CAIdGeneratorUpdateCLI.class); | ||
|
||
public CARangeGeneratorUpdateCLI(CLI parent) { | ||
public CAIdGeneratorUpdateCLI(CLI parent) { | ||
super(parent); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
base/kra/src/main/java/org/dogtagpki/server/kra/cli/KRAIdCLI.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// Copyright Red Hat, Inc. | ||
// | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
// | ||
package org.dogtagpki.server.kra.cli; | ||
|
||
import org.dogtagpki.cli.CLI; | ||
|
||
/** | ||
* @author Marco Fargetta {@literal <[email protected]>} | ||
*/ | ||
public class KRAIdCLI extends CLI { | ||
public KRAIdCLI(CLI parent) { | ||
super("id", "CA id generator management commands", parent); | ||
|
||
addModule(new KRAIdGeneratorCLI(this)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,10 @@ | |
/** | ||
* @author Marco Fargetta {@literal <[email protected]>} | ||
*/ | ||
public class KRARangeGeneratorCLI extends CLI { | ||
public KRARangeGeneratorCLI(CLI parent) { | ||
public class KRAIdGeneratorCLI extends CLI { | ||
public KRAIdGeneratorCLI(CLI parent) { | ||
super("generator", "kra range generator commands", parent); | ||
|
||
addModule(new kraRangeGeneratorUpdateCLI(this)); | ||
addModule(new kraIdGeneratorUpdateCLI(this)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,15 +12,14 @@ | |
import com.netscape.cmscore.ldapconn.LdapConnInfo; | ||
import com.netscape.cmscore.ldapconn.PKISocketFactory; | ||
import org.dogtagpki.cli.CLI; | ||
import org.dogtagpki.server.cli.SubsystemRangeGeneratorUpdateCLI; | ||
import org.dogtagpki.server.cli.SubsystemIdGeneratorUpdateCLI; | ||
|
||
/** | ||
* | ||
* @author mfargetta | ||
* @author Marco Fargetta {@literal <[email protected]>} | ||
*/ | ||
public class kraRangeGeneratorUpdateCLI extends SubsystemRangeGeneratorUpdateCLI { | ||
public class kraIdGeneratorUpdateCLI extends SubsystemIdGeneratorUpdateCLI { | ||
|
||
public kraRangeGeneratorUpdateCLI(CLI parent) { | ||
public kraIdGeneratorUpdateCLI(CLI parent) { | ||
super(parent); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.