public abstract class XiAction extends Object implements org.apache.karaf.shell.api.action.Action
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.karaf.shell.api.console.Session |
session |
| Constructor and Description |
|---|
XiAction() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
confirm(String prompt,
int maxTries) |
protected static byte[] |
derPemEncode(byte[] data,
String encodeForm,
org.xipki.util.PemEncoder.PemLabel pemLabel) |
protected org.xipki.util.ConfPairs |
embedFileContent(org.xipki.util.ConfPairs confPairs) |
protected static byte[] |
encodeCert(byte[] data,
String encodeForm) |
protected static byte[] |
encodeCrl(byte[] data,
String encodeForm) |
protected static byte[] |
encodeCsr(byte[] data,
String encodeForm) |
Object |
execute() |
protected abstract Object |
execute0() |
protected static File |
expandFilepath(File file) |
protected static String |
expandFilepath(String path) |
protected static boolean |
isBlank(String str) |
protected static boolean |
isEmpty(Collection<?> col) |
protected static boolean |
isEnabled(String enabledS,
boolean defaultEnabled,
String optionName) |
protected static boolean |
isNotBlank(String str) |
protected static boolean |
isNotEmpty(Collection<?> col) |
protected boolean |
isTrue(Boolean bo) |
protected void |
print(String message) |
protected void |
println(String message) |
protected char[] |
readPassword() |
protected char[] |
readPassword(String prompt) |
protected char[] |
readPasswordIfNotSet(String password) |
protected char[] |
readPasswordIfNotSet(String prompt,
String password) |
protected String |
readPrompt(String prompt) |
protected void |
save(File file,
byte[] encoded) |
protected void |
save(String file,
byte[] encoded) |
protected void |
saveVerbose(String promptPrefix,
File file,
byte[] encoded) |
protected void |
saveVerbose(String promptPrefix,
String file,
byte[] encoded) |
protected static List<String> |
split(String str,
String delim) |
protected static BigInteger |
toBigInt(String str) |
protected static BigInteger |
toBigInt(String str,
boolean defaultHex) |
public Object execute() throws Exception
execute in interface org.apache.karaf.shell.api.action.ActionExceptionprotected boolean isTrue(Boolean bo)
protected org.xipki.util.ConfPairs embedFileContent(org.xipki.util.ConfPairs confPairs)
throws IOException
IOExceptionprotected void saveVerbose(String promptPrefix, String file, byte[] encoded) throws IOException
IOExceptionprotected void saveVerbose(String promptPrefix, File file, byte[] encoded) throws IOException
IOExceptionprotected void save(String file, byte[] encoded) throws IOException
IOExceptionprotected void save(File file, byte[] encoded) throws IOException
IOExceptionprotected static boolean isEnabled(String enabledS, boolean defaultEnabled, String optionName)
protected String readPrompt(String prompt) throws IOException
IOExceptionprotected char[] readPasswordIfNotSet(String password) throws IOException
IOExceptionprotected char[] readPasswordIfNotSet(String prompt, String password) throws IOException
IOExceptionprotected char[] readPassword()
throws IOException
IOExceptionprotected char[] readPassword(String prompt) throws IOException
IOExceptionprotected void println(String message)
protected void print(String message)
protected static boolean isBlank(String str)
protected static boolean isNotBlank(String str)
protected static boolean isEmpty(Collection<?> col)
protected static boolean isNotEmpty(Collection<?> col)
protected static BigInteger toBigInt(String str)
protected static BigInteger toBigInt(String str, boolean defaultHex)
protected static byte[] encodeCert(byte[] data,
String encodeForm)
protected static byte[] encodeCrl(byte[] data,
String encodeForm)
protected static byte[] encodeCsr(byte[] data,
String encodeForm)
protected static byte[] derPemEncode(byte[] data,
String encodeForm,
org.xipki.util.PemEncoder.PemLabel pemLabel)
protected boolean confirm(String prompt, int maxTries) throws IOException
IOExceptionCopyright © 2019. All rights reserved.