Class GeneralAuthCommand
- All Implemented Interfaces:
com.sankcrm.erp.bus.Command<SdkAuthzResult>,Serializable,Cloneable,Map<String,,Object> SequencedMap<String,Object>
@HttpClient(uri="/v1/api/auth/login",
propClass=AuthSdkProperties.class,
handler=com.sankcrm.erp.sdk.infrastructure.InboundHandler.class)
public class GeneralAuthCommand
extends LinkedHashMap<String,Object>
implements com.sankcrm.erp.bus.Command<SdkAuthzResult>
通用认证
- Since:
- 3.2.4
- Author:
- zhsxin
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsaveExtra(boolean save) 设置信息是否保存setCaptcha(CaptchaAnswer captcha) 设置一次性登录图形验证码。toString()避免 Map 风格命令日志输出一次性验证码答案。Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, newLinkedHashMap, putFirst, putLast, removeEldestEntry, replaceAll, reversed, sequencedEntrySet, sequencedKeySet, sequencedValues, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMap
equals, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sankcrm.erp.bus.Command
addPre, pre, verify, wrapMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from interface java.util.SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry
-
Constructor Details
-
GeneralAuthCommand
-
GeneralAuthCommand
public GeneralAuthCommand()
-
-
Method Details
-
setType
-
setCaptcha
设置一次性登录图形验证码。- Parameters:
captcha- 挑战编号、敏感答案与流程标识;答案会在命令日志中遮盖- Returns:
- 当前命令,支持链式构造
-
setAppId
-
setAppId
-
set
-
set
-
setExtra
-
setExtra
-
addExtra
-
saveExtra
设置信息是否保存- Parameters:
save- true 保存 反之不保存- Returns:
- 通用登录命令
-
toString
避免 Map 风格命令日志输出一次性验证码答案。- Overrides:
toStringin classAbstractMap<String,Object>
-