public class ProfileCLI extends CLI
| Modifier and Type | Field and Description |
|---|---|
CACLI |
caCLI |
static org.slf4j.Logger |
logger |
ProfileClient |
profileClient |
| Constructor and Description |
|---|
ProfileCLI(CACLI caCLI) |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkConfiguration(byte[] in,
boolean requireProfileId,
boolean requireDisabled)
Sanity check the profile configuration.
|
java.lang.String |
getFullName() |
java.lang.String |
getManPage() |
ProfileClient |
getProfileClient() |
static void |
printEnrollmentTemplate(CertEnrollmentRequest request) |
static void |
printProfile(ProfileData data,
java.net.URI baseUri) |
static void |
printProfileDataInfo(ProfileDataInfo info) |
static ProfileData |
readProfileFromFile(java.lang.String filename) |
static byte[] |
readRawProfileFromFile(java.nio.file.Path path)
Reads a raw profile from the specified file.
|
static byte[] |
readRawProfileFromFile(java.lang.String path)
Reads a raw profile from the specified file.
|
static void |
saveEnrollmentTemplateToFile(java.lang.String filename,
CertEnrollmentRequest request) |
static void |
saveProfileToFile(java.lang.String filename,
ProfileData data) |
addModule, execute, findModule, findModules, getClient, getClient, getConfig, getDescription, getFullModuleName, getModule, getModules, getName, getParent, getRoot, isDeprecated, printCommands, printHelp, removeModule, runExternal, runExternal, setDescription, setNamepublic static org.slf4j.Logger logger
public CACLI caCLI
public ProfileClient profileClient
public ProfileCLI(CACLI caCLI)
public java.lang.String getFullName()
getFullName in class CLIpublic java.lang.String getManPage()
getManPage in class CLIpublic ProfileClient getProfileClient() throws java.lang.Exception
java.lang.Exceptionpublic static void printProfileDataInfo(ProfileDataInfo info)
public static void printProfile(ProfileData data, java.net.URI baseUri)
public static void saveProfileToFile(java.lang.String filename,
ProfileData data)
throws javax.xml.bind.JAXBException,
java.io.FileNotFoundException
javax.xml.bind.JAXBExceptionjava.io.FileNotFoundExceptionpublic static ProfileData readProfileFromFile(java.lang.String filename) throws javax.xml.bind.JAXBException, java.io.FileNotFoundException
javax.xml.bind.JAXBExceptionjava.io.FileNotFoundExceptionpublic static byte[] readRawProfileFromFile(java.nio.file.Path path)
throws PKIException,
java.io.IOException
PKIException - if it doesn't parse as a Properties or
if it doesn't contain the profileId field.java.io.IOExceptionpublic static byte[] readRawProfileFromFile(java.lang.String path)
throws PKIException,
java.io.IOException
PKIException - if it doesn't parse as a Properties or
if it doesn't contain the profileId field.java.io.IOExceptionpublic static void checkConfiguration(byte[] in,
boolean requireProfileId,
boolean requireDisabled)
throws PKIException
PKIExceptionpublic static void saveEnrollmentTemplateToFile(java.lang.String filename,
CertEnrollmentRequest request)
throws javax.xml.bind.JAXBException,
java.io.FileNotFoundException
javax.xml.bind.JAXBExceptionjava.io.FileNotFoundExceptionpublic static void printEnrollmentTemplate(CertEnrollmentRequest request)