Class: AuthzToken

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/security_model_types.rb

Constant Summary collapse

ACCESSTOKEN =
1
CLAIMSMAP =
2
FIELDS =
{
  ACCESSTOKEN => {:type => ::Thrift::Types::STRING, :name => 'accessToken'},
  CLAIMSMAP => {:type => ::Thrift::Types::MAP, :name => 'claimsMap', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



19
# File 'lib/security_model_types.rb', line 19

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


21
22
23
# File 'lib/security_model_types.rb', line 21

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field accessToken is unset!') unless @accessToken
end