public class CLIUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getFileContent(CommandManager mgr,
String fileName)
Returns content of a file.
|
static String |
getFileContent(CommandManager mgr,
String fileName,
boolean singleLine)
Returns content of a file.
|
static Set |
getPasswordFields(String serviceName)
Returns a set of attributes (of password syntax) of a given service.
|
static Set |
getPasswordFields(String serviceName,
SchemaType schemaType,
String subSchema)
Returns a set of attributes (of password syntax) of a given service.
|
static void |
writeToFile(String file,
String content)
Writes to a file.
|
public static String getFileContent(CommandManager mgr, String fileName) throws CLIException
mgr - Command Line Manager.fileName - Name of file.CLIException - if file content cannot be returned.public static String getFileContent(CommandManager mgr, String fileName, boolean singleLine) throws CLIException
mgr - Command Line Manager.fileName - Name of file.singleLine - true to only read one line from the file.CLIException - if file content cannot be returned.public static Set getPasswordFields(String serviceName) throws SMSException, SSOException
serviceName - Name of service.SMSException - if error occurs when reading the service schema
layerSSOException - if Single sign-on token is invalid.public static Set getPasswordFields(String serviceName, SchemaType schemaType, String subSchema) throws SMSException, SSOException
serviceName - Name of service.schemaType - Type of Schema.subSchema - Name of SubSchemaSMSException - if error occurs when reading the service schema
layerSSOException - if Single sign-on token is invalid.public static void writeToFile(String file, String content) throws IOException
file - Name of file.content - Content to be written.IOException - if file cannot be accessed.Copyright © 2010–2024 Open Identity Platform Community. All rights reserved.