Class VICommands
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.cli.CommonCommands
-
- edu.uiuc.ncsa.security.storage.cli.StoreCommands
-
- org.oa4mp.server.admin.myproxy.oauth2.base.OA4MPStoreCommands
-
- org.oa4mp.server.admin.myproxy.oauth2.tools.VICommands
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Logable
,edu.uiuc.ncsa.security.util.cli.Commands
,Serializable
public class VICommands extends OA4MPStoreCommands
Created by Jeff Gaynor
on 2/22/21 at 8:01 AM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
EC_CURVE_FLAG
static String
EC_FLAG
static String
RSA_SIZE_FLAG
-
Fields inherited from class edu.uiuc.ncsa.security.storage.cli.StoreCommands
ALL_LIST_COMMAND, allEntries, DEFAULT_MAGIC_NUMBER, display_width, FILE_FLAG, FORCE_COPY_FLAG, KEY_SHORTHAND_PREFIX, LINE_LIST_COMMAND, LIST_EOL_MARKER, LOAD_ONLY_COMMAND, NEXT_N_COMMAND, RANDOM_ID_FLAG, RESULT_SET_KEY, resultSets, RM_FORCE_FLAG, RS_APPEND_ACTION, RS_CLEAR_ACTION, RS_DROP_ACTION, RS_FIELDS_ACTION, RS_FILE_KEY, RS_LIST_ACTION, RS_RANGE_KEY, RS_RANGE_SHORT_KEY, RS_READ_ACTION, RS_REMOVE_ACTION, RS_SAVE_ACTION, RS_SHOW_ACTION, RS_SIZE_ACTION, RS_SUBSET_ACTION, RS_WRITE_ACTION, SEARCH_AFTER_TS_FLAG, SEARCH_BEFORE_TS_FLAG, SEARCH_DATE_FLAG, SEARCH_DEBUG_FLAG, SEARCH_IS_NULL_FLAG, SEARCH_REGEX_FLAG, SEARCH_RESULT_SET_NAME, SEARCH_RETURNED_ATTRIBUTES_FLAG, SEARCH_SHORT_REGEX_FLAG, SEARCH_SIZE_FLAG, SEARCH_VERSIONS_FALSE_VALUE, SEARCH_VERSIONS_FLAG, SEARCH_VERSIONS_ONLY_VALUE, SEARCH_VERSIONS_TRUE_VALUE, SHORT_UPDATE_FLAG, SIZE_ALL_FLAG, SIZE_VERSIONS_FLAG, SKIP_UPDATE_PERMISSIONS_FLAG, sortable, UPDATE_FLAG, UPKEEP_FLAG_CFG, UPKEEP_FLAG_ENABLE, UPKEEP_FLAG_RUN, UPKEEP_FLAG_SHOW, UPKEEP_FLAG_TEST, VERBOSE_COMMAND
-
-
Constructor Summary
Constructors Constructor Description VICommands(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger, edu.uiuc.ncsa.security.core.Store store)
VICommands(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger, String defaultIndent, edu.uiuc.ncsa.security.core.Store store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add_admin(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
void
bootstrap()
edu.uiuc.ncsa.security.storage.cli.StoreCommands.ChangeIDRecord
doChangeID(edu.uiuc.ncsa.security.core.Identifiable identifiable, edu.uiuc.ncsa.security.core.Identifier newID, boolean updatePermissions)
void
extraUpdates(edu.uiuc.ncsa.security.core.Identifiable identifiable, int magicNumber)
protected String
format(edu.uiuc.ncsa.security.core.Identifiable identifiable)
String
getName()
protected org.oa4mp.server.loader.oauth2.storage.vi.VIStore
getVIS()
void
list_admins(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
void
new_keys(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
protected void
newKeys(org.oa4mp.server.loader.oauth2.storage.vi.VirtualIssuer vo)
Create the new keys with the spec default.protected void
newKeys(org.oa4mp.server.loader.oauth2.storage.vi.VirtualIssuer vo, int keySize)
protected void
newKeys(org.oa4mp.server.loader.oauth2.storage.vi.VirtualIssuer vo, String curve)
void
print_keys(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
protected int
updateStorePermissions(edu.uiuc.ncsa.security.core.Identifier newID, edu.uiuc.ncsa.security.core.Identifier oldID, boolean copy)
-
Methods inherited from class org.oa4mp.server.admin.myproxy.oauth2.base.OA4MPStoreCommands
decode, encode, getEnvironment, getState, main, printIndexHelp, processList, run_qdl, setState
-
Methods inherited from class edu.uiuc.ncsa.security.storage.cli.StoreCommands
actualCreate, addEntry, addEntry, archive, archiveFormat, change_id, clear_id, clear_store, clearEntries, copy, create, create, create, createEntry, deserialize, doCopy, edit, extractRawList, findByIDOrRS, findItem, findItem, findItem, findSingleton, findSingleton, formatLongLine, fromXMLMap, get_id, getAndCheckKeyArg, getArgList, getEditorEntry, getID, getIdentifierfromIndex, getKeyArg, getKeyArg, getKeys, getMapConverter, getPrompt, getResultSets, getSerializationKeys, getSortable, getStore, getStoreArchiver, getTempDir, hasEntries, hasId, hasID, hasKey, inputJSON, isBadID, isMonitored, list_keys, listEntries, loadAllEntries, loadQDLScript, longFormat, longFormat, longFormat, ls, multiLineInput, multiLinePropertyInput, oldls1, oldrm, oldUpdate, preCreation, print_help, printRS, rangeHelpSnippet, removeEntries, removeEntry, rm, rmCleanup, rs, search, serialize, serialize, set_id, setEnvironment, setID, setIDFromInputLine, setResultSets, setSortable, setStore, showArchiveHelp, showCommandLineSwitchesHelp, showCreateHelp, showDeserializeHelp, showEntry, showEntrySubset, showKeyShorthandHelp, showListKeysHelp, showLSHelp, showLSHelp3, showResultSetHelp, showRMHelp, showSearchHelp, showSearchHelpExamples, showSerializeHelp, showSizeHelp, showUpdateHelp, showUpkeepHelp, size, toXMLMap, update, update, update, updateSingleValue, updateSingleValue, upkeep
-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.CommonCommands
clear_env, clearEnvHelp, debug, echo, echoHelp, error, get_env, getBufferedReader, getDriver, getHelpUtil, getInput, getIOInterface, getPlaceHolder, getPropertyHelp, getValue, gracefulExit, indentWidth, info, isBatch, isBatchFile, isBatchMode, isDebugOn, isEmpty, isOk, isPrintOuput, isVerbose, logit, print_env, printEnvHelp, printGetEnvHelp, printReadEnvHelp, printSaveEnvHelp, printSetEnvHelp, read_env, readFile, readJSON, readline, readline, save_env, say, say, say2, sayi, sayii, sayv, set_env, set_output_on, set_verbose_on, setBatchFile, setBatchMode, setBufferedReader, setDebugOn, setDriver, setHelpUtil, setIOInterface, setOutputOnHelp, setPlaceHolder, setPrintOuput, setVerbose, setVerboseHelp, showHelp, version, versionHelp, warn
-
-
-
-
Field Detail
-
EC_FLAG
public static final String EC_FLAG
- See Also:
- Constant Field Values
-
RSA_SIZE_FLAG
public static final String RSA_SIZE_FLAG
- See Also:
- Constant Field Values
-
EC_CURVE_FLAG
public static final String EC_CURVE_FLAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVIS
protected org.oa4mp.server.loader.oauth2.storage.vi.VIStore getVIS()
-
getName
public String getName()
-
extraUpdates
public void extraUpdates(edu.uiuc.ncsa.security.core.Identifiable identifiable, int magicNumber) throws IOException
- Overrides:
extraUpdates
in classOA4MPStoreCommands
- Throws:
IOException
-
new_keys
public void new_keys(edu.uiuc.ncsa.security.util.cli.InputLine inputLine) throws Throwable
- Throws:
Throwable
-
newKeys
protected void newKeys(org.oa4mp.server.loader.oauth2.storage.vi.VirtualIssuer vo, int keySize) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException
-
newKeys
protected void newKeys(org.oa4mp.server.loader.oauth2.storage.vi.VirtualIssuer vo, String curve) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException
-
newKeys
protected void newKeys(org.oa4mp.server.loader.oauth2.storage.vi.VirtualIssuer vo) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException
Create the new keys with the spec default. Note that this requires difference curves for each size.- Parameters:
vo
-- Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException
-
print_keys
public void print_keys(edu.uiuc.ncsa.security.util.cli.InputLine inputLine) throws Throwable
- Throws:
Throwable
-
format
protected String format(edu.uiuc.ncsa.security.core.Identifiable identifiable)
- Specified by:
format
in classedu.uiuc.ncsa.security.storage.cli.StoreCommands
-
bootstrap
public void bootstrap() throws Throwable
- Specified by:
bootstrap
in interfaceedu.uiuc.ncsa.security.util.cli.Commands
- Overrides:
bootstrap
in classedu.uiuc.ncsa.security.storage.cli.StoreCommands
- Throws:
Throwable
-
add_admin
public void add_admin(edu.uiuc.ncsa.security.util.cli.InputLine inputLine) throws Throwable
- Throws:
Throwable
-
updateStorePermissions
protected int updateStorePermissions(edu.uiuc.ncsa.security.core.Identifier newID, edu.uiuc.ncsa.security.core.Identifier oldID, boolean copy)
- Specified by:
updateStorePermissions
in classedu.uiuc.ncsa.security.storage.cli.StoreCommands
-
doChangeID
public edu.uiuc.ncsa.security.storage.cli.StoreCommands.ChangeIDRecord doChangeID(edu.uiuc.ncsa.security.core.Identifiable identifiable, edu.uiuc.ncsa.security.core.Identifier newID, boolean updatePermissions)
- Overrides:
doChangeID
in classedu.uiuc.ncsa.security.storage.cli.StoreCommands
-
-