class JSON::JWS

def update(hash_or_jwt)

def update(hash_or_jwt)
  super
  if hash_or_jwt.is_a? JSON::JWT
    self.header.update hash_or_jwt.header
    self.signature = hash_or_jwt.signature
    self.blank_payload = hash_or_jwt.blank_payload
  end
  self
end