Class: TencentCloud::Waf::V20180125::JWTConfig
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::JWTConfig
- Defined in:
- lib/v20180125/models.rb
Overview
当用户选择JWS/JWE会话管理方式的时候,上传的配置信息以及校验规则
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(secretinfo = nil, payloadrule = nil) ⇒ JWTConfig
constructor
A new instance of JWTConfig.
Constructor Details
#initialize(secretinfo = nil, payloadrule = nil) ⇒ JWTConfig
Returns a new instance of JWTConfig.
12875 12876 12877 12878 |
# File 'lib/v20180125/models.rb', line 12875 def initialize(secretinfo=nil, payloadrule=nil) @SecretInfo = secretinfo @PayloadRule = payloadrule end |
Instance Attribute Details
#PayloadRule ⇒ Object
12873 12874 12875 |
# File 'lib/v20180125/models.rb', line 12873 def PayloadRule @PayloadRule end |
#SecretInfo ⇒ Object
12873 12874 12875 |
# File 'lib/v20180125/models.rb', line 12873 def SecretInfo @SecretInfo end |
Instance Method Details
#deserialize(params) ⇒ Object
12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 |
# File 'lib/v20180125/models.rb', line 12880 def deserialize(params) unless params['SecretInfo'].nil? @SecretInfo = SecretInfo.new @SecretInfo.deserialize(params['SecretInfo']) end unless params['PayloadRule'].nil? @PayloadRule = [] params['PayloadRule'].each do |i| tokenruleentry_tmp = TokenRuleEntry.new tokenruleentry_tmp.deserialize(i) @PayloadRule << tokenruleentry_tmp end end end |