public class ProfileCLI extends CLI
Modifier and Type | Field and Description |
---|---|
ProfileClient |
profileClient |
Constructor and Description |
---|
ProfileCLI(CLI parent) |
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, getDeprecatedModules, getDescription, getFullModuleName, getModule, getModules, getName, getParent, isDeprecated, isVerbose, printHelp, removeModule, runExternal, runExternal, setDescription, setName, setVerbose
public ProfileClient profileClient
public ProfileCLI(CLI parent)
public java.lang.String getFullName()
getFullName
in class CLI
public java.lang.String getManPage()
getManPage
in class CLI
public ProfileClient getProfileClient() throws java.lang.Exception
java.lang.Exception
public 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.JAXBException
java.io.FileNotFoundException
public static ProfileData readProfileFromFile(java.lang.String filename) throws javax.xml.bind.JAXBException, java.io.FileNotFoundException
javax.xml.bind.JAXBException
java.io.FileNotFoundException
public 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.IOException
public 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.IOException
public static void checkConfiguration(byte[] in, boolean requireProfileId, boolean requireDisabled) throws PKIException
PKIException
public static void saveEnrollmentTemplateToFile(java.lang.String filename, CertEnrollmentRequest request) throws javax.xml.bind.JAXBException, java.io.FileNotFoundException
javax.xml.bind.JAXBException
java.io.FileNotFoundException
public static void printEnrollmentTemplate(CertEnrollmentRequest request)