All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.common.settings.AddStringKeyStoreCommand.class Maven / Gradle / Ivy

????4?;forceOption	arguments+Ljoptsimple/OptionSpec;()V$Add a string setting to the keystore(Ljava/lang/String;)V
parserLjoptsimple/OptionParser;	java/lang/Stringxstdinjava/util/ArraysasList%([Ljava/lang/Object;)Ljava/util/List; 
!Read setting value from stdin#joptsimple/OptionParser%
acceptsAllB(Ljava/util/List;Ljava/lang/String;)Ljoptsimple/OptionSpecBuilder;'(
&)	+f-force/,Overwrite existing setting without prompting1		3setting name5
nonOptions6(Ljava/lang/String;)Ljoptsimple/NonOptionArgumentSpec;78
&9
	;this>Lcom/groupbyinc/flux/common/settings/AddStringKeyStoreCommand;getStdin()Ljava/io/InputStream;java/lang/SystemAinLjava/io/InputStream;CD	BEexecute`(Lcom/groupbyinc/flux/cli/Terminal;Ljoptsimple/OptionSet;Lcom/groupbyinc/flux/env/Environment;)Vjava/lang/ExceptionI"java/lang/IllegalArgumentExceptionK#com/groupbyinc/flux/env/EnvironmentM
configFile()Ljava/nio/file/Path;OP
NQ3com/groupbyinc/flux/common/settings/KeyStoreWrapperSloadK(Ljava/nio/file/Path;)Lcom/groupbyinc/flux/common/settings/KeyStoreWrapper;UV
TW%com/groupbyinc/flux/cli/UserExceptionYEElasticsearch keystore not found. Use 'create' command to create one.[(ILjava/lang/String;)V]
Z^decrypt([C)V`a
Tbjoptsimple/OptionSpecdvalue*(Ljoptsimple/OptionSet;)Ljava/lang/Object;fgeh The setting name can not be nulljgetSettingNames()Ljava/util/Set;lm
Tn
java/util/Setpcontains(Ljava/lang/Object;)Zrsqtjoptsimple/OptionSetvhas(Ljoptsimple/OptionSpec;)Zxy
wzjava/lang/StringBuilder|
}~Setting ?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
}? already exists. Overwrite??toString()Ljava/lang/String;??
}? com/groupbyinc/flux/cli/Terminal?promptYesNo(Ljava/lang/String;Z)Z??
??#Exiting without modifying keystore.?println?
??java/io/BufferedReader?java/io/InputStreamReader??@
?!java/nio/charset/StandardCharsets?UTF_8Ljava/nio/charset/Charset;??	??2(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V?
??(Ljava/io/Reader;)V?
??readLine??
??toCharArray()[C??
?Enter value for ?: ?
readSecret(Ljava/lang/String;)[C??
??[C?	setString(Ljava/lang/String;[C)V??
T?$String value must contain only ASCII?save(Ljava/nio/file/Path;)V??
T?stdinReaderLjava/io/BufferedReader;e$Ljava/lang/IllegalArgumentException;terminal"Lcom/groupbyinc/flux/cli/Terminal;optionsLjoptsimple/OptionSet;env%Lcom/groupbyinc/flux/env/Environment;keystore5Lcom/groupbyinc/flux/common/settings/KeyStoreWrapper;settingLjava/lang/String;	SignatureCodeLocalVariableTableLineNumberTable
StackMapTable
Exceptions
SourceFile ?	?
?
??P*?**??YSYS?"$?*?,**??Y.SY0S?"2?*?4**?6?:??./$0B1O2?@?.?F??=>?6GH???-?R?X:??ZYA\?_???c*?<,?i?:??ZY@k?_??o?u?6,*?4?{?++?}Y??????????????
+????,*?,?{?'??Y??Y*????????:????:?"+?}Y?????????????:???:?ZYA??_?-?R?ñ???L?f
?
???f?????=>?????????	???1????$f??Z;	<=@"B1C6DBF\G}H?I?N?O?P?Q?R?V?Y?W?X?Z?[??T?'?A.??KL
?J?




© 2015 - 2025 Weber Informatics LLC | Privacy Policy